mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-02 06:41:51 +00:00
NEVERHOOD: Fix crash in scene 1105 (teddy bear panel)
Leaving the panel in scene 1105 only worked if the panel was open. If the panel was closed, nothing would happen on the first click, and on the second it would crash. If I understood this correctly, it was because trying to leave while the panel was closed would (incorrectly) mark it as open, and then it would crash when trying to remove the objects behind the panel from the scene.
This commit is contained in:
parent
f8c0d354af
commit
52be12830b
@ -465,7 +465,7 @@ uint32 Scene1105::handleMessage(int messageNum, const MessageParam ¶m, Entit
|
||||
_backgroundIndex = 15;
|
||||
SetUpdateHandler(&Scene1105::upClosePanel);
|
||||
} else
|
||||
_isPanelOpen = true;
|
||||
_isClosePanelDone = true;
|
||||
_leaveResult = 0;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user