changeset 13349 | 40742f3f7dd9 |
parent 13348 | 5f6208031658 |
child 13370 | e202d58236b1 |
--- a/hedgewars/uScript.pas Sun Apr 29 10:47:02 2018 -0400 +++ b/hedgewars/uScript.pas Sun Apr 29 11:25:12 2018 -0400 @@ -3410,7 +3410,11 @@ physfsReaderSetBuffer(@buf); if Pos('Locale/',s) <> 0 then ret:= lua_load(luaState, @ScriptLocaleReader, f, Str2PChar(s)) -else ret:= lua_load(luaState, @ScriptReader, f, Str2PChar(s)); +else + begin + SetRandomSeed(cSeed,true); + ret:= lua_load(luaState, @ScriptReader, f, Str2PChar(s)) + end; pfsClose(f); if ret <> 0 then