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:
parent
db2cd01922
commit
8a919816e1
@ -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();
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user