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

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Sun Apr 6 14:17:42 CEST 2008


Revision: 31421
          http://scummvm.svn.sourceforge.net/scummvm/?rev=31421&view=rev
Author:   eriktorbjorn
Date:     2008-04-06 05:17:41 -0700 (Sun, 06 Apr 2008)

Log Message:
-----------
Fixed warning. (The 'anim' variable shadowed the anim() function.)

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

Modified: scummvm/trunk/engines/lure/hotspots.cpp
===================================================================
--- scummvm/trunk/engines/lure/hotspots.cpp	2008-04-06 12:00:37 UTC (rev 31420)
+++ scummvm/trunk/engines/lure/hotspots.cpp	2008-04-06 12:17:41 UTC (rev 31421)
@@ -224,10 +224,10 @@
 	Resources &r = Resources::getReference();
 
 	// Get the animation specified
-	HotspotAnimList::iterator anim = r.animRecords().begin();
+	HotspotAnimList::iterator a = r.animRecords().begin();
 	for (int i = 0; i < animIndex; i++)
-		++anim;
-	HotspotAnimData *tempAnim = (*anim).get();
+		++a;
+	HotspotAnimData *tempAnim = (*a).get();
 
 	_animId = tempAnim->animRecordId;
 	if (_data)


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