From 5d7499bd2a979eea075cb919a93ef98f47f3ebc4 Mon Sep 17 00:00:00 2001 From: MysterD Date: Sun, 30 Aug 2020 23:13:05 -0700 Subject: [PATCH] Fixed crash when changing areas within a level Bug reported by somario360: After I (Luigi) exited the slide in CCM, an error message appeared and ignoring would make it pop up again. This was due to the sync ID reservation system not being flushed and reset on area change. --- src/game/level_update.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/game/level_update.c b/src/game/level_update.c index 3d68d900..37088b6e 100644 --- a/src/game/level_update.c +++ b/src/game/level_update.c @@ -1100,6 +1100,8 @@ void level_set_transition(s16 length, void (*updateFunction)(s16 *)) { * Play the transition and then return to normal play mode. */ s32 play_mode_change_area(void) { + network_on_init_level(); + //! This maybe was supposed to be sTransitionTimer == -1? sTransitionUpdate // is never set to -1. if (sTransitionUpdate == (void (*)(s16 *)) - 1) {