Bugfix: Reset mario's room when switching areas (#504)

Mario's room sometimes is not reset when warping between different areas, generally when warping from one area with rooms to another without them. This can cause things like doors to not render properly.
This commit is contained in:
Gregory Heskett authored and GitHub committed 2022-10-03 18:06:53 -05:00
1 parent 0dd3ef7f50
commit 68f09d34ea
1 file changed
+2
+2
View File
@@ -235,6 +235,8 @@ void load_area(s32 index) {
main_pool_pop_state();
main_pool_push_state();
gMarioCurrentRoom = 0;
if (gCurrentArea->terrainData != NULL) {
load_area_terrain(index, gCurrentArea->terrainData, gCurrentArea->surfaceRooms,
gCurrentArea->macroObjects);