[Orxonox-commit 461] r3037 - trunk/src/core
bknecht at orxonox.net
bknecht at orxonox.net
Sun May 24 03:01:38 CEST 2009
Author: bknecht
Date: 2009-05-24 03:01:38 +0200 (Sun, 24 May 2009)
New Revision: 3037
Modified:
trunk/src/core/Game.cc
trunk/src/core/Game.h
Log:
minor fix so not all hell breaks loose if we do not use this function with lua
Modified: trunk/src/core/Game.cc
===================================================================
--- trunk/src/core/Game.cc 2009-05-24 00:39:16 UTC (rev 3036)
+++ trunk/src/core/Game.cc 2009-05-24 01:01:38 UTC (rev 3037)
@@ -130,7 +130,7 @@
ModifyConfigValue(levelName_, set, levelName);
}
- const std::string& Game::getLevel()
+ std::string Game::getLevel()
{
std::string levelName;
CommandLine::getValue("level", &levelName);
Modified: trunk/src/core/Game.h
===================================================================
--- trunk/src/core/Game.h 2009-05-24 00:39:16 UTC (rev 3036)
+++ trunk/src/core/Game.h 2009-05-24 01:01:38 UTC (rev 3037)
@@ -85,7 +85,7 @@
static Game& getInstance() { assert(singletonRef_s); return *singletonRef_s; } //tolua_export
void setLevel(std::string levelName); //tolua_export
- const std::string& getLevel(); //tolua_export
+ std::string getLevel(); //tolua_export
private:
struct statisticsTickInfo
More information about the Orxonox-commit
mailing list