SCUMM: ZAK (FM-Towns): Fix bug #14387
This fixes a crash when loading from the GMM save states which had been created from the original menu. This also fixes the auto-close of the menu when a game is loaded from the original menu.
This commit is contained in:
parent
cccac84717
commit
fd8cf5dee5
1 changed files with 5 additions and 2 deletions
|
@ -1858,8 +1858,11 @@ void ScummEngine::saveLoadWithSerializer(Common::Serializer &s) {
|
||||||
for (int v = 102 + 6; v <= 111; v++)
|
for (int v = 102 + 6; v <= 111; v++)
|
||||||
VAR(v) = 0;
|
VAR(v) = 0;
|
||||||
|
|
||||||
// make sure the appropriate verbs and arrows are displayed
|
// Make sure the appropriate verbs and arrows are displayed.
|
||||||
runInventoryScript(0);
|
// We avoid doing that in room 50 (save room) since it can crash
|
||||||
|
// the game and trigger several unwanted side effects (bug #14387).
|
||||||
|
if (_currentRoom != 50)
|
||||||
|
runInventoryScript(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue