aboutsummaryrefslogtreecommitdiff
path: root/engines/lure
diff options
context:
space:
mode:
authorPaul Gilbert2008-01-08 03:09:00 +0000
committerPaul Gilbert2008-01-08 03:09:00 +0000
commit660d9a89d7d3fd1888027e83ac1d4f889c5a115c (patch)
tree4bfe004e45d3a90e6ad6faad4cd1cf985ef8f2a8 /engines/lure
parentc1c8b10fbe396a6669bbdee607fb4b86d3c1e120 (diff)
downloadscummvm-rg350-660d9a89d7d3fd1888027e83ac1d4f889c5a115c.tar.gz
scummvm-rg350-660d9a89d7d3fd1888027e83ac1d4f889c5a115c.tar.bz2
scummvm-rg350-660d9a89d7d3fd1888027e83ac1d4f889c5a115c.zip
Bugfix for #1865552 - crash when waiting for patrol. Incorrect value was being passed to retrieve a hotspot pointer
svn-id: r30336
Diffstat (limited to 'engines/lure')
-rw-r--r--engines/lure/hotspots.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}