diff options
author | Eugene Sandulenko | 2013-05-02 14:17:46 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2013-05-02 14:17:46 +0300 |
commit | eddf8cba936b55511428e43b123995e9d1253c13 (patch) | |
tree | 0741ceba8855f399c5791a8a0afefaa54ef93496 | |
parent | 5cc510469298e923b5b3160a8522d47731f0c1fb (diff) | |
download | scummvm-rg350-eddf8cba936b55511428e43b123995e9d1253c13.tar.gz scummvm-rg350-eddf8cba936b55511428e43b123995e9d1253c13.tar.bz2 scummvm-rg350-eddf8cba936b55511428e43b123995e9d1253c13.zip |
AGI: Fix unitialized variables. CID 1002922
-rw-r--r-- | engines/agi/agi.cpp | 15 |
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() { |