Skip to content

Commit

Permalink
fix ocarina minigame crash
Browse files Browse the repository at this point in the history
  • Loading branch information
glankk committed Feb 1, 2020
1 parent 922cb8a commit 869db02
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/gz/gz.c
Original file line number Diff line number Diff line change
Expand Up @@ -933,8 +933,7 @@ HOOK uint32_t afx_rand_hook(void)
maybe_init_gp();
if (!gz.ready || gz.movie_state == MOVIE_IDLE) {
/* produce a number using the audio rng, as normal */
uint32_t (*z64_afx_rand_func)(void) = (void*)&z64_afx_rand_func;
return z64_afx_rand_func();
return z64_AfxRand();
}
else {
/* produce a number that is deterministic within gz movies */
Expand Down

0 comments on commit 869db02

Please sign in to comment.