Try to fix network item crash, caused by one item being collected

at the same time by two different karts.
This commit is contained in:
hiker
2018-10-19 00:28:43 +11:00
parent 036f00b55a
commit dff64f5878

View File

@@ -388,7 +388,7 @@ void ItemManager::checkItemHit(AbstractKart* kart)
i!=m_all_items.end(); i++)
{
// Ignore items that have been collected or are not available atm
if ((!*i) || !(*i)->isAvailable()) continue;
if ((!*i) || !(*i)->isAvailable() || (*i)->isUsedUp()) continue;
// Shielded karts can simply drive over bubble gums without any effect
if ( kart->isShielded() &&