Fixed warning. (The 'anim' variable shadowed the anim() function.)

svn-id: r31421
This commit is contained in:
Torbjörn Andersson 2008-04-06 12:17:41 +00:00
parent 6a9acd7a5e
commit 0dcfa7b3df

View File

@ -224,10 +224,10 @@ void Hotspot::setAnimationIndex(int animIndex) {
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)