Skip to content

Commit

Permalink
Merge pull request #328 from estebanfer/fix-local-prng
Browse files Browse the repository at this point in the history
fix PRNG::get_local not getting the local prng
  • Loading branch information
Dregu authored Sep 8, 2023
2 parents e5e5c55 + 9cb3529 commit 69927f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game_api/prng.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ PRNG& PRNG::get_main()
PRNG& PRNG::get_local()
{
const auto& state = State::get();
static PRNG* prng = (PRNG*)((size_t)state.ptr_local() - 0xb0);
PRNG* prng = (PRNG*)((size_t)state.ptr_local() - 0xb0);
return *prng;
}

Expand Down

0 comments on commit 69927f3

Please sign in to comment.