diff options
author | Sven Hesse | 2007-01-06 11:17:20 +0000 |
---|---|---|
committer | Sven Hesse | 2007-01-06 11:17:20 +0000 |
commit | 6e0835da114d23673ce456f18db5995b22a35da7 (patch) | |
tree | 2379335dedd2f014c51b4d34121dd8232745e431 /engines/gob/game_v1.cpp | |
parent | 61d741514e72d12d62248d6523cb149c37f7d51e (diff) | |
download | scummvm-rg350-6e0835da114d23673ce456f18db5995b22a35da7.tar.gz scummvm-rg350-6e0835da114d23673ce456f18db5995b22a35da7.tar.bz2 scummvm-rg350-6e0835da114d23673ce456f18db5995b22a35da7.zip |
- Fixed cut off and missing sounds
- Fixed a crash/static reported in the forums (sending Winkle to the vulture)
- (Hopefully) fixed the immediately-closing notepad heisenbug (#1621089)
- Fixed using unitialised values after allocating the variables
svn-id: r25025
Diffstat (limited to 'engines/gob/game_v1.cpp')
-rw-r--r-- | engines/gob/game_v1.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/gob/game_v1.cpp b/engines/gob/game_v1.cpp index 590ecfa2a7..b539a63fd2 100644 --- a/engines/gob/game_v1.cpp +++ b/engines/gob/game_v1.cpp @@ -173,8 +173,7 @@ void Game_v1::playTot(int16 skipPlay) { variablesCount = READ_LE_UINT32((char *)_totFileData + 0x2c); _vm->_global->_inter_variables = new char[variablesCount * 4]; _vm->_global->_inter_variablesSizes = new byte[variablesCount * 4]; - for (i = 0; i < variablesCount; i++) - WRITE_VAR(i, 0); + _vm->_global->clearVars(variablesCount); } _vm->_global->_inter_execPtr = (char *)_totFileData; |