From 8a919816e193c6be5ab7c8230f6f1df124d67e9b Mon Sep 17 00:00:00 2001 From: auria Date: Mon, 23 Apr 2012 23:41:51 +0000 Subject: [PATCH] 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 --- src/modes/overworld.cpp | 2 +- src/modes/overworld.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modes/overworld.cpp b/src/modes/overworld.cpp index 250f572e8..3980bcaaa 100644 --- a/src/modes/overworld.cpp +++ b/src/modes/overworld.cpp @@ -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(); diff --git a/src/modes/overworld.hpp b/src/modes/overworld.hpp index c12aa9afa..67b57fd3a 100644 --- a/src/modes/overworld.hpp +++ b/src/modes/overworld.hpp @@ -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();