Warn on failed command compilation

This commit is contained in:
Devin J. Pohly
2014-02-20 10:59:48 -05:00
parent 80bf2f8d93
commit 3ac15cc1ce
+6
View File
@@ -1126,6 +1126,12 @@ void Actor::RunCommands( const LuaReference& cmds, const LuaReference *pParamTab
// function
cmds.PushSelf( L );
if( lua_isnil(L, -1) )
{
LOG->Warn("Error compiling commands");
LUA->Release(L);
return;
}
// 1st parameter
this->PushSelf( L );