- Fixed: Assertion failure if a save was loaded without starting a new game (due to uninitialized RNG).

This commit is contained in:
Braden Obrzut 2016-10-17 00:22:06 -04:00
parent 741c9edf42
commit b4bdb8fa7d

View file

@ -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();