aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMarisa-Chan2014-12-19 15:39:51 +0600
committerMarisa-Chan2014-12-19 15:39:51 +0600
commit5a087927805529293fb340b0b7c0d2e789278ae9 (patch)
tree3f344115805b5d9af3241debfd86f1410bb0cada /engines
parent74ea583a4ef446a92cbba4506f7c04513d1ca997 (diff)
downloadscummvm-rg350-5a087927805529293fb340b0b7c0d2e789278ae9.tar.gz
scummvm-rg350-5a087927805529293fb340b0b7c0d2e789278ae9.tar.bz2
scummvm-rg350-5a087927805529293fb340b0b7c0d2e789278ae9.zip
ZVISION: Fix uninitialized scalar field (CID 1125218)
Diffstat (limited to 'engines')
-rw-r--r--engines/zvision/scripting/sidefx/timer_node.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/zvision/scripting/sidefx/timer_node.cpp b/engines/zvision/scripting/sidefx/timer_node.cpp
index abf2c90b04..170f6e7472 100644
--- a/engines/zvision/scripting/sidefx/timer_node.cpp
+++ b/engines/zvision/scripting/sidefx/timer_node.cpp
@@ -33,6 +33,8 @@ namespace ZVision {
TimerNode::TimerNode(ZVision *engine, uint32 key, uint timeInSeconds)
: SideFX(engine, key, SIDEFX_TIMER) {
+ _timeLeft = 0;
+
if (_engine->getGameId() == GID_NEMESIS)
_timeLeft = timeInSeconds * 1000;
else if (_engine->getGameId() == GID_GRANDINQUISITOR)