Skip to content

Commit

Permalink
Fixed loading into the wrong version of a map after saving in areas w…
Browse files Browse the repository at this point in the history
…ith multiple layouts (#5347)

Co-authored-by: Hedara <[email protected]>
  • Loading branch information
hedara90 and Hedara authored Sep 9, 2024
1 parent 5089b1d commit dc2bbe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/overworld.c
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ static void LoadCurrentMapData(void)
static void LoadSaveblockMapHeader(void)
{
gMapHeader = *Overworld_GetMapHeaderByGroupAndId(gSaveBlock1Ptr->location.mapGroup, gSaveBlock1Ptr->location.mapNum);
gMapHeader.mapLayout = GetMapLayout(gMapHeader.mapLayoutId);
gMapHeader.mapLayout = GetMapLayout(gSaveBlock1Ptr->mapLayoutId);
}

static void SetPlayerCoordsFromWarp(void)
Expand Down

0 comments on commit dc2bbe0

Please sign in to comment.