From 52be12830b7fdce9c0d632d3a292cd7cc6d98d1d Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sun, 2 Jun 2013 10:54:37 +0200 Subject: 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. --- engines/neverhood/modules/module1100.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- cgit v1.2.3