Changeset 1201
- Timestamp:
- 03/04/2010 09:26:21 AM (6 months ago)
- Files:
-
- 1 modified
-
Trunk/src/LuaEngine/LUAEngine.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
Trunk/src/LuaEngine/LUAEngine.cpp
r1198 r1201 236 236 void LuaEngine::BeginCall(uint16 fReference) 237 237 { 238 lua_settop(lu,0); //stack should be empty 239 lua_rawgeti(lu,LUA_REGISTRYINDEX,fReference); 240 if(!lua_isfunction(lu,-1) ) 241 luaL_error(lu,"Attempted to call an invalid function. \n"); 238 if(fReference > 1) 239 { 240 lua_settop(lu,0); //stack should be empty 241 lua_rawgeti(lu,LUA_REGISTRYINDEX,fReference); 242 if(!lua_isfunction(lu,-1) ) 243 luaL_error(lu,"Attempted to call an invalid function. \n"); 244 } 242 245 } 243 246 bool LuaEngine::ExecuteCall(uint8 params, uint8 res)
![(please configure the [header_logo] section in trac.ini)](/trac/arcscripts/chrome/site/your_project_logo.png)