[Scummvm-cvs-logs] scummvm master -> 30cae4d12d31f5ca86638e9eaf15d93e3375120c

lordhoto lordhoto at gmail.com
Fri Apr 15 00:38:54 CEST 2016


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
30cae4d12d KYRA: Initialize variable before usage.


Commit: 30cae4d12d31f5ca86638e9eaf15d93e3375120c
    https://github.com/scummvm/scummvm/commit/30cae4d12d31f5ca86638e9eaf15d93e3375120c
Author: Johannes Schickel (lordhoto at scummvm.org)
Date: 2016-04-15T00:26:17+02:00

Commit Message:
KYRA: Initialize variable before usage.

Thanks to salty-horse for reporting.

Changed paths:
    engines/kyra/kyra_v2.cpp



diff --git a/engines/kyra/kyra_v2.cpp b/engines/kyra/kyra_v2.cpp
index 925dcf7..106420d 100644
--- a/engines/kyra/kyra_v2.cpp
+++ b/engines/kyra/kyra_v2.cpp
@@ -46,6 +46,8 @@ KyraEngine_v2::KyraEngine_v2(OSystem *system, const GameFlags &flags, const Engi
 	memset(&_sceneScriptState, 0, sizeof(_sceneScriptState));
 	memset(&_sceneScriptData, 0, sizeof(_sceneScriptData));
 
+	Common::fill(_sceneSpecialScriptsTimer, ARRAYEND(_sceneSpecialScriptsTimer), 0);
+
 	_animObjects = 0;
 
 	_runFlag = true;






More information about the Scummvm-git-logs mailing list