diff options
author | Max Horn | 2010-08-11 12:49:16 +0000 |
---|---|---|
committer | Max Horn | 2010-08-11 12:49:16 +0000 |
commit | b8ee574e40676a711e07312f859c11da988e517a (patch) | |
tree | 29545f500f5bdc1d78f72343d5cdbd7d367feb32 /engines/scumm/scumm.cpp | |
parent | aa9f9c7e7e68df016d39a163f6f0b121afa2e4e3 (diff) | |
download | scummvm-rg350-b8ee574e40676a711e07312f859c11da988e517a.tar.gz scummvm-rg350-b8ee574e40676a711e07312f859c11da988e517a.tar.bz2 scummvm-rg350-b8ee574e40676a711e07312f859c11da988e517a.zip |
SCUMM: _resultVarNumber and related methods are specific to v0-v5
svn-id: r51974
Diffstat (limited to 'engines/scumm/scumm.cpp')
-rw-r--r-- | engines/scumm/scumm.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/scumm/scumm.cpp b/engines/scumm/scumm.cpp index fc95060b6f..a349275b98 100644 --- a/engines/scumm/scumm.cpp +++ b/engines/scumm/scumm.cpp @@ -214,7 +214,6 @@ ScummEngine::ScummEngine(OSystem *syst, const DetectorResult &dr) _opcode = 0; vm.numNestedScripts = 0; _lastCodePtr = NULL; - _resultVarNumber = 0; _scummStackPos = 0; memset(_vmStack, 0, sizeof(_vmStack)); _fileOffset = 0; @@ -631,6 +630,10 @@ ScummEngine_v5::ScummEngine_v5(OSystem *syst, const DetectorResult &dr) _flashlight.xStrips = 7; _flashlight.yStrips = 7; _flashlight.buffer = NULL; + + memset(_saveLoadVarsFilename, 0, sizeof(_saveLoadVarsFilename)); + + _resultVarNumber = 0; } ScummEngine_v4::ScummEngine_v4(OSystem *syst, const DetectorResult &dr) |