Skip to content

Commit

Permalink
Fix FixedRandom not resetting the random count
Browse files Browse the repository at this point in the history
  • Loading branch information
Fulgen301 committed Jul 28, 2024
1 parent 342ce5f commit ae93438
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/C4Random.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ inline void FixedRandom(uint32_t dwSeed)
{
// for SafeRandom
srand(static_cast<unsigned>(time(nullptr)));
C4Random::Default.randomHold = dwSeed;
C4Random::Default = C4Random{dwSeed};
}

inline int Random(int iRange)
Expand Down

0 comments on commit ae93438

Please sign in to comment.