portx64: bug fix: weatherResetRooms accessing invalid memory when returning to STAGE_TITLE

This commit is contained in:
Raf committed 2024-08-02 17:37:33 +08:00
1 parent 71dc521baa
commit 50b912db98
1 file changed
+3 -1
+3 -1
View File
@@ -82,7 +82,9 @@ void weatherReset(void)
#else
g_WeatherData->windspeed = g_CurWeatherConfig->windspeed;
// set up the weatherproof flags in all rooms
weatherResetRooms();
if (g_Vars.stagenum != STAGE_TITLE) {
weatherResetRooms();
}
#endif
g_WeatherData->audiohandles[0] = 0;