onLapEnd() fix

This commit is contained in:
Csaba Molnar
2014-03-17 22:30:17 +01:00
parent e8eabc80c9
commit 249635f01a

View File

@@ -243,7 +243,7 @@ void LinearWorld::newLap(unsigned int kart_index)
PlayerProfile *p = PlayerManager::get()->getCurrentPlayer();
if (c && c->getConstProfile() == p)
{
PlayerManager::get()->getCurrentPlayer()->getAchievementsStatus()->onLapEnd();
p->getAchievementsStatus()->onLapEnd();
}
// Only update the kart controller if a kart that has already finished