From 19272595e746ad7fb867eaa2bea5d1c46543c965 Mon Sep 17 00:00:00 2001 From: Sylvain Dupont Date: Fri, 15 Oct 2010 22:05:54 +0000 Subject: [PATCH] TOON: Fixed Bug #3085978 with "Exit Not Defined" appearing Bug #3085978: "TOON: "Exit not defined" when leaving cellar" svn-id: r53521 --- engines/toon/toon.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engines/toon/toon.cpp b/engines/toon/toon.cpp index f881395f0bc..619942713a8 100644 --- a/engines/toon/toon.cpp +++ b/engines/toon/toon.cpp @@ -849,7 +849,7 @@ void ToonEngine::loadScene(int32 SceneId, bool forGameLoad) { _lastMouseButton = 0; _mouseButton = 0; - _currentHotspotItem = -1; + _currentHotspotItem = 0; if (!forGameLoad) { _gameState->_sackVisible = true; @@ -1188,7 +1188,7 @@ void ToonEngine::clickEvent() { if (_gameState->_mouseState >= 0 && !rightButton) { addItemToInventory(_gameState->_mouseState); setCursor(0, false, 0, 0); - _currentHotspotItem = -1; + _currentHotspotItem = 0; return; } else { showInventory(); @@ -1201,7 +1201,7 @@ void ToonEngine::clickEvent() { if (rightButton && _gameState->_mouseState >= 0) { addItemToInventory(_gameState->_mouseState); setCursor(0, false, 0, 0); - _currentHotspotItem = -1; + _currentHotspotItem = 0; return; }