From 3ac15cc1ce3d6869368f8de90d7b6aa28d3d49ad Mon Sep 17 00:00:00 2001 From: "Devin J. Pohly" Date: Sun, 13 Oct 2013 14:35:48 -0400 Subject: [PATCH] Warn on failed command compilation --- src/Actor.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Actor.cpp b/src/Actor.cpp index d2264cbf32..b2863fc91b 100644 --- a/src/Actor.cpp +++ b/src/Actor.cpp @@ -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 );