Change RunScriptFile to report errors through the error reporting system instead of just dialogs so that errors show when reloading scripts in game.

This commit is contained in:
Kyzentun Keeslala
2015-06-16 16:51:06 -06:00
parent 51add5730e
commit 4078010ebd
+1 -1
View File
@@ -771,7 +771,7 @@ bool LuaHelpers::RunScriptFile( const RString &sFile )
{
LUA->Release( L );
sError = ssprintf( "Lua runtime error: %s", sError.c_str() );
Dialog::OK( sError, "LUA_ERROR" );
LuaHelpers::ReportScriptError(sError);
return false;
}
LUA->Release( L );