don't leave the file open while we execute a script (leaves the file locked in Windows while/if the dialog comes up)
This commit is contained in:
@@ -455,6 +455,7 @@ bool LuaHelpers::RunScriptFile( const RString &sFile )
|
|||||||
Dialog::OK( sError, "LUA_ERROR" );
|
Dialog::OK( sError, "LUA_ERROR" );
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
f.Close();
|
||||||
|
|
||||||
Lua *L = LUA->Get();
|
Lua *L = LUA->Get();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user