assert earlier

This commit is contained in:
Glenn Maynard
2005-02-23 06:18:38 +00:00
parent b35d1c806e
commit 1213a2c9b0
+1
View File
@@ -214,6 +214,7 @@ void GameCommand::Load( int iIndex, const Commands& cmds )
else if( sName == "lua" )
{
m_LuaFunction.SetFromExpression( sValue );
ASSERT_M( !m_LuaFunction.IsNil(), ssprintf("\"%s\" evaluated to nil", sValue.c_str()) );
}
else if( sName == "screen" )