[Orxonox-commit 2701] r7406 - code/trunk/src/modules/objects
dafrick at orxonox.net
dafrick at orxonox.net
Sat Sep 11 14:50:21 CEST 2010
Author: dafrick
Date: 2010-09-11 14:50:21 +0200 (Sat, 11 Sep 2010)
New Revision: 7406
Modified:
code/trunk/src/modules/objects/Script.cc
code/trunk/src/modules/objects/Script.h
Log:
Fixing so that libobjects is loaded again...
Modified: code/trunk/src/modules/objects/Script.cc
===================================================================
--- code/trunk/src/modules/objects/Script.cc 2010-09-11 12:45:39 UTC (rev 7405)
+++ code/trunk/src/modules/objects/Script.cc 2010-09-11 12:50:21 UTC (rev 7406)
@@ -41,6 +41,7 @@
// Initializing constants.
/*static*/ const std::string Script::NORMAL = "normal";
/*static*/ const std::string Script::LUA = "lua";
+ /*static*/ const int Script::INF = -1;
/**
@brief
Modified: code/trunk/src/modules/objects/Script.h
===================================================================
--- code/trunk/src/modules/objects/Script.h 2010-09-11 12:45:39 UTC (rev 7405)
+++ code/trunk/src/modules/objects/Script.h 2010-09-11 12:50:21 UTC (rev 7406)
@@ -128,7 +128,7 @@
//! Static variables to avoid magic strings.
static const std::string NORMAL;
static const std::string LUA;
- static const int INF = -1;
+ static const int INF;
std::string code_; //!< The code that is executed by this Script.
ScriptMode::Value mode_; //!< The mode the Script is in. Determines whether the code is executed the normal way or in lua.
More information about the Orxonox-commit
mailing list