Broadened the fix for bug #795214 to make it work with resaves of old savegames, fixing bug #1648248
svn-id: r25340
This commit is contained in:
parent
6c9502b901
commit
e363d1ebb1
1 changed files with 5 additions and 3 deletions
|
@ -276,9 +276,11 @@ bool ScummEngine::loadState(int slot, bool compat) {
|
||||||
if (_screenTop < 0)
|
if (_screenTop < 0)
|
||||||
_screenTop = 0;
|
_screenTop = 0;
|
||||||
|
|
||||||
// WORKAROUND bug #795214: Object 819 could be set to a state of 1 in old save games
|
// WORKAROUND bug #795214: For unknown reasons, object 819 sometimes is in
|
||||||
// Object 819 is part of the exit of the church and should not be drawn.
|
// state 1 in old save games, implying it should be drawn. This in turn
|
||||||
if (hdr.ver < VER(59) && _game.id == GID_MONKEY_VGA) {
|
// results in a crash when entering the church, as object 819 is part of the
|
||||||
|
// exitof the church and there are no graphics assigned to it.
|
||||||
|
if (_game.id == GID_MONKEY_VGA) {
|
||||||
putState(819, 0);
|
putState(819, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue