From 660d9a89d7d3fd1888027e83ac1d4f889c5a115c Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Tue, 8 Jan 2008 03:09:00 +0000 Subject: Bugfix for #1865552 - crash when waiting for patrol. Incorrect value was being passed to retrieve a hotspot pointer svn-id: r30336 --- engines/lure/hotspots.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/lure/hotspots.cpp b/engines/lure/hotspots.cpp index 7c8183ba77..fbe80235fe 100644 --- a/engines/lure/hotspots.cpp +++ b/engines/lure/hotspots.cpp @@ -2017,7 +2017,7 @@ void Hotspot::npcSupportOffsetConditional(HotspotData *hotspot) { _currentActions.top().setSupportData(newEntry); HotspotData *hotspotData = (newEntry->numParams() == 0) ? NULL : res.getHotspot( - (newEntry->action() == USE) ? 1 : 0); + (newEntry->action() == USE) ? newEntry->param(1) : newEntry->param(0)); doAction(newEntry->action(), hotspotData); } -- cgit v1.2.3