Fixed returning reference to temporary

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11145 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2012-04-23 23:41:51 +00:00
parent db2cd01922
commit 8a919816e1
2 changed files with 2 additions and 2 deletions

View File

@ -193,7 +193,7 @@ void OverWorld::moveKartAfterRescue(AbstractKart* kart)
//-----------------------------------------------------------------------------
const btTransform& OverWorld::getClosestStartPoint(float currentKart_x, float currentKart_z)
btTransform OverWorld::getClosestStartPoint(float currentKart_x, float currentKart_z)
{
// find closest point to drop kart on
World *world = World::getWorld();

View File

@ -42,7 +42,7 @@ protected:
void moveKartAfterRescue(AbstractKart* kart, float angle);
const btTransform& getClosestStartPoint(float currentKart_x, float currentKart_z);
btTransform getClosestStartPoint(float currentKart_x, float currentKart_z);
public:
OverWorld();