From: <rf...@us...> - 2009-08-14 20:16:46
|
Revision: 3861 http://supertuxkart.svn.sourceforge.net/supertuxkart/?rev=3861&view=rev Author: rforder Date: 2009-08-14 20:16:34 +0000 (Fri, 14 Aug 2009) Log Message: ----------- Fixed ActivePlayer::getKart to actually return the correct kart. Modified Paths: -------------- main/branches/irrlicht/src/config/player.cpp Modified: main/branches/irrlicht/src/config/player.cpp =================================================================== --- main/branches/irrlicht/src/config/player.cpp 2009-08-14 17:36:47 UTC (rev 3860) +++ main/branches/irrlicht/src/config/player.cpp 2009-08-14 20:16:34 UTC (rev 3861) @@ -42,7 +42,7 @@ 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); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |