[Orxonox-commit 5308] r9971 - code/trunk/src/modules/gametypes

landauf at orxonox.net landauf at orxonox.net
Sat Jan 4 14:20:06 CET 2014


Author: landauf
Date: 2014-01-04 14:20:06 +0100 (Sat, 04 Jan 2014)
New Revision: 9971

Modified:
   code/trunk/src/modules/gametypes/RaceCheckPoint.h
Log:
return reference instead of copy. this also fixes a crash in SpaceRaceController.cc:189 because begin and end iterator were not from the same container

Modified: code/trunk/src/modules/gametypes/RaceCheckPoint.h
===================================================================
--- code/trunk/src/modules/gametypes/RaceCheckPoint.h	2014-01-04 13:15:23 UTC (rev 9970)
+++ code/trunk/src/modules/gametypes/RaceCheckPoint.h	2014-01-04 13:20:06 UTC (rev 9971)
@@ -61,7 +61,7 @@
             void setNextCheckpointsAsVector3(const Vector3& checkpoints);
             Vector3 getNextCheckpointsAsVector3();
 
-            std::set<int> getNextCheckpoints()
+            const std::set<int>& getNextCheckpoints()
             {
                 return nextCheckpoints_;
             }




More information about the Orxonox-commit mailing list