Fixed loading into the wrong version of a map after saving in areas with multiple layouts (#5347)

Co-authored-by: Hedara <hedara90@gmail.com>
This commit is contained in:
hedara90
2024-09-09 14:34:21 +02:00
committed by GitHub
parent 5089b1d0b4
commit dc2bbe0448

View File

@@ -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)