aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2013-05-02 14:17:46 +0300
committerEugene Sandulenko2013-05-02 14:17:46 +0300
commiteddf8cba936b55511428e43b123995e9d1253c13 (patch)
tree0741ceba8855f399c5791a8a0afefaa54ef93496 /engines
parent5cc510469298e923b5b3160a8522d47731f0c1fb (diff)
downloadscummvm-rg350-eddf8cba936b55511428e43b123995e9d1253c13.tar.gz
scummvm-rg350-eddf8cba936b55511428e43b123995e9d1253c13.tar.bz2
scummvm-rg350-eddf8cba936b55511428e43b123995e9d1253c13.zip
AGI: Fix unitialized variables. CID 1002922
Diffstat (limited to 'engines')
-rw-r--r--engines/agi/agi.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/engines/agi/agi.cpp b/engines/agi/agi.cpp
index f79dfa35c2..1c342183cd 100644
--- a/engines/agi/agi.cpp
+++ b/engines/agi/agi.cpp
@@ -585,6 +585,21 @@ AgiEngine::AgiEngine(OSystem *syst, const AGIGameDescription *gameDesc) : AgiBas
setupOpcodes();
_game._curLogic = NULL;
_timerHack = 0;
+
+ _lastSaveTime = 0;
+ _lastTick = 0;
+
+ memset(_keyQueue, 0, sizeof(_keyQueue));
+ memset(_predictiveResult, 0, sizeof(_predictiveResult));
+
+ _sprites = NULL;
+ _picture = NULL;
+ _loader = NULL;
+ _console = NULL;
+
+ _egoHoldKey = false;
+
+
}
void AgiEngine::initialize() {