when compiling a script from a file, don't dump the entire contents of the

script to the log/dialog
This commit is contained in:
Glenn Maynard
2005-02-15 07:17:49 +00:00
parent 6d7f4cf150
commit 8584cbc0d7
3 changed files with 25 additions and 9 deletions
+7 -1
View File
@@ -71,7 +71,13 @@ void ActorCommands::Register()
CString s2 = s.str();
LUA->RunScript( s2, "in", 1 );
CString sError;
if( !LUA->RunScript( s2, "in", sError, 1 ) )
{
/* We're compiling a generated script, so it should never fail. */
FAIL_M( ssprintf("Compiling \"%s\": %s", s2.c_str(), sError.c_str()) );
}
/* The function is now on the stack. */
this->SetFromStack();