Check _scummVar size of restart too.
svn-id: r14987
This commit is contained in:
parent
67f7c40446
commit
0a3ca185e0
1 changed files with 3 additions and 5 deletions
|
@ -2302,10 +2302,8 @@ void ScummEngine::startScene(int room, Actor *a, int objectNr) {
|
||||||
_sound->processSoundQues();
|
_sound->processSoundQues();
|
||||||
|
|
||||||
// Clear the room variables
|
// Clear the room variables
|
||||||
if (_heversion >= 80) {
|
for (i = 0; i < _numRoomVariables; i++)
|
||||||
for (i = 0; i < _numRoomVariables; i++)
|
_roomVars[i] = 0;
|
||||||
_roomVars[i] = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
for (i = 1; i < _numActors; i++) {
|
for (i = 1; i < _numActors; i++) {
|
||||||
_actors[i].hideActor();
|
_actors[i].hideActor();
|
||||||
|
@ -2820,7 +2818,7 @@ void ScummEngine::restart() {
|
||||||
_sound->stopAllSounds();
|
_sound->stopAllSounds();
|
||||||
|
|
||||||
// Clear the script variables
|
// Clear the script variables
|
||||||
for (i = 0; i < 255; i++)
|
for (i = 0; i < _numVariables; i++)
|
||||||
_scummVars[i] = 0;
|
_scummVars[i] = 0;
|
||||||
|
|
||||||
// Empty inventory
|
// Empty inventory
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue