[Scummvm-cvs-logs] SF.net SVN: scummvm: [30336] scummvm/trunk/engines/lure/hotspots.cpp

dreammaster at users.sourceforge.net dreammaster at users.sourceforge.net
Tue Jan 8 04:09:01 CET 2008


Revision: 30336
          http://scummvm.svn.sourceforge.net/scummvm/?rev=30336&view=rev
Author:   dreammaster
Date:     2008-01-07 19:09:00 -0800 (Mon, 07 Jan 2008)

Log Message:
-----------
Bugfix for #1865552 - crash when waiting for patrol. Incorrect value was being passed to retrieve a hotspot pointer

Modified Paths:
--------------
    scummvm/trunk/engines/lure/hotspots.cpp

Modified: scummvm/trunk/engines/lure/hotspots.cpp
===================================================================
--- scummvm/trunk/engines/lure/hotspots.cpp	2008-01-07 23:13:45 UTC (rev 30335)
+++ scummvm/trunk/engines/lure/hotspots.cpp	2008-01-08 03:09:00 UTC (rev 30336)
@@ -2017,7 +2017,7 @@
 
 	_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);
 }
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list