forked from Ports/perfect_dark
portx64: bug fix: weatherResetRooms accessing invalid memory when returning to STAGE_TITLE
This commit is contained in:
1 parent
71dc521baa
commit
50b912db98
1 file changed
+3
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user