diff --git a/stepmania/src/GameCommand.cpp b/stepmania/src/GameCommand.cpp index 8190188b77..ab74a4746b 100644 --- a/stepmania/src/GameCommand.cpp +++ b/stepmania/src/GameCommand.cpp @@ -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" )