From aa96ec99400b76b0bf9cc0efc00d6cf6c2984c2b Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 16 Dec 2007 09:36:07 +0000 Subject: Bugfix for walking to hotspots - if the mouse was already highlighting the hotspot when a room was entered, clicking on it would cause the player to walk to an arbitrary exit svn-id: r29875 --- engines/lure/room.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engines/lure/room.cpp b/engines/lure/room.cpp index 00caddb0f9..c12372a499 100644 --- a/engines/lure/room.cpp +++ b/engines/lure/room.cpp @@ -153,6 +153,8 @@ void Room::checkRoomHotspots() { int16 currentY = m.y(); HotspotDataList::iterator i; + _destRoomNumber = 0; + // Loop for each range of hotspot Ids for (int ctr = 0; ctr < 4; ++ctr) { for (i = list.begin(); i != list.end(); ++i) { @@ -209,7 +211,6 @@ void Room::checkRoomHotspots() { _hotspotId = 0; _hotspotNameId = 0; _hotspot = NULL; - _destRoomNumber = 0; } else { _hotspotNameId = entry->nameId; _hotspot = entry; -- cgit v1.2.3