Fixed ActivePlayer::getKart to actually return the correct kart.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3861 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
rforder 2009-08-14 20:16:34 +00:00
parent 47cfe64301
commit 5b62ac9a59

View File

@ -42,7 +42,7 @@ PlayerKart* ActivePlayer::getKart()
const int amount = RaceManager::getWorld()->getCurrentNumLocalPlayers();
for (int p=0; p<amount; p++)
{
if (RaceManager::getWorld()->getLocalPlayerKart(p)->getPlayer()->getProfile() == m_player)
if (RaceManager::getWorld()->getLocalPlayerKart(p)->getPlayer() == this)
{
return RaceManager::getWorld()->getLocalPlayerKart(p);
}