diff options
author | Torbjörn Andersson | 2013-06-02 10:54:37 +0200 |
---|---|---|
committer | Torbjörn Andersson | 2013-06-02 10:54:37 +0200 |
commit | 52be12830b7fdce9c0d632d3a292cd7cc6d98d1d (patch) | |
tree | 90438f3ad96e73111c03b0b23456429190c4b6fd /engines/neverhood/modules/module1100.cpp | |
parent | f8c0d354af82a97ac2cede930776bb61ea2f5c9d (diff) | |
download | scummvm-rg350-52be12830b7fdce9c0d632d3a292cd7cc6d98d1d.tar.gz scummvm-rg350-52be12830b7fdce9c0d632d3a292cd7cc6d98d1d.tar.bz2 scummvm-rg350-52be12830b7fdce9c0d632d3a292cd7cc6d98d1d.zip |
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.
Diffstat (limited to 'engines/neverhood/modules/module1100.cpp')
-rw-r--r-- | engines/neverhood/modules/module1100.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/neverhood/modules/module1100.cpp b/engines/neverhood/modules/module1100.cpp index 5a5e52e5b0..c4d90b5562 100644 --- a/engines/neverhood/modules/module1100.cpp +++ b/engines/neverhood/modules/module1100.cpp @@ -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; } } |