diff --git a/src/ActorFrame.cpp b/src/ActorFrame.cpp index dc43140e76..59d87b2548 100644 --- a/src/ActorFrame.cpp +++ b/src/ActorFrame.cpp @@ -352,7 +352,11 @@ void ActorFrame::UpdateInternal( float fDeltaTime ) { Lua *L = LUA->Get(); m_UpdateFunction.PushSelf( L ); - ASSERT( !lua_isnil(L, -1) ); + if( lua_isnil(L, -1) ) + { + LOG->Warn( "Error compiling UpdateFunction" ); + return; + } this->PushSelf( L ); lua_pushnumber( L, fDeltaTime ); RString sError;