[Scummvm-cvs-logs] SF.net SVN: scummvm:[48762] scummvm/branches/branch-1-1-0/engines/lure/ hotspots.cpp
dreammaster at users.sourceforge.net
dreammaster at users.sourceforge.net
Wed Apr 21 11:20:28 CEST 2010
Revision: 48762
http://scummvm.svn.sourceforge.net/scummvm/?rev=48762&view=rev
Author: dreammaster
Date: 2010-04-21 09:20:27 +0000 (Wed, 21 Apr 2010)
Log Message:
-----------
Backport of revisions 48741 & 48759 - Correcting debug statement that could access object field after the object was destroyed
Modified Paths:
--------------
scummvm/branches/branch-1-1-0/engines/lure/hotspots.cpp
Modified: scummvm/branches/branch-1-1-0/engines/lure/hotspots.cpp
===================================================================
--- scummvm/branches/branch-1-1-0/engines/lure/hotspots.cpp 2010-04-21 08:09:32 UTC (rev 48761)
+++ scummvm/branches/branch-1-1-0/engines/lure/hotspots.cpp 2010-04-21 09:20:27 UTC (rev 48762)
@@ -1251,8 +1251,9 @@
void Hotspot::doAction(Action action, HotspotData *hotspot) {
StringList &stringList = Resources::getReference().stringList();
+ int charId = _hotspotId;
debugC(ERROR_INTERMEDIATE, kLureDebugHotspots, "Action charId=%xh Action=%d/%s",
- _hotspotId, (int)action, (action > EXAMINE) ? NULL : stringList.getString((int)action));
+ charId, (int)action, (action > EXAMINE) ? NULL : stringList.getString((int)action));
// Set the ACTIVE_HOTSPOT_ID and USE_HOTSPOT_ID fields
if (hotspot != NULL) {
@@ -1374,7 +1375,7 @@
}
debugC(ERROR_DETAILED, kLureDebugHotspots, "Action charId=%xh Action=%d/%s Complete",
- _hotspotId, (int)action, (action > EXAMINE) ? NULL : stringList.getString((int)action));
+ charId, (int)action, (action > EXAMINE) ? NULL : stringList.getString((int)action));
}
void Hotspot::doNothing(HotspotData *hotspot) {
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