mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-25 05:31:00 +00:00
- Fixed: Assertion failure if a save was loaded without starting a new game (due to uninitialized RNG).
This commit is contained in:
parent
741c9edf42
commit
b4bdb8fa7d
1 changed files with 4 additions and 0 deletions
|
@ -331,6 +331,10 @@ void FRandom::StaticReadRNGState(FSerializer &arc)
|
|||
FRandom *rng;
|
||||
|
||||
arc("rngseed", rngseed);
|
||||
|
||||
// Call StaticClearRandom in order to ensure that SFMT is initialized
|
||||
FRandom::StaticClearRandom ();
|
||||
|
||||
if (arc.BeginArray("rngs"))
|
||||
{
|
||||
int count = arc.ArraySize();
|
||||
|
|
Loading…
Reference in a new issue