Bugfix: STK would hang if a race is restarted that had bubble gums dropped on the track.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5375 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -228,7 +228,11 @@ void ItemManager::reset()
|
||||
AllItemTypes::iterator i=m_all_items.begin();
|
||||
while(i!=m_all_items.end())
|
||||
{
|
||||
if(!*i) continue;
|
||||
if(!*i)
|
||||
{
|
||||
i++;
|
||||
continue;
|
||||
}
|
||||
if((*i)->canBeUsedUp() || (*i)->getType()==Item::ITEM_BUBBLEGUM)
|
||||
{
|
||||
Item *b=*i;
|
||||
@@ -241,7 +245,7 @@ void ItemManager::reset()
|
||||
(*i)->reset();
|
||||
i++;
|
||||
}
|
||||
} // for i
|
||||
} // whilem_all_items.end() i
|
||||
|
||||
m_switch_time = -1;
|
||||
} // reset
|
||||
|
||||
Reference in New Issue
Block a user