summaryrefslogtreecommitdiff
path: root/src/region_map.c
diff options
context:
space:
mode:
authorExpoSeed <43502820+ExpoSeed@users.noreply.github.com>2021-06-13 16:32:00 -0500
committerExpoSeed <43502820+ExpoSeed@users.noreply.github.com>2021-06-13 17:02:06 -0500
commitb6b0062bd60eb57d66b6c79fc48bdbb55d8a5bf5 (patch)
treed88bfad489969bce94fe4db73a8fc1776f606150 /src/region_map.c
parentf85fb3af8923b7dce601591dede2d3bee0729d1e (diff)
Change map header flags to use a bitfield
Diffstat (limited to 'src/region_map.c')
-rw-r--r--src/region_map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/region_map.c b/src/region_map.c
index bec51ebf0..27e035199 100644
--- a/src/region_map.c
+++ b/src/region_map.c
@@ -1007,7 +1007,7 @@ static void InitMapBasedOnPlayerLocation(void)
break;
case MAP_TYPE_UNDERGROUND:
case MAP_TYPE_UNKNOWN:
- if (gMapHeader.flags & MAP_ALLOW_ESCAPING)
+ if (gMapHeader.allowEscaping)
{
mapHeader = Overworld_GetMapHeaderByGroupAndId(gSaveBlock1Ptr->escapeWarp.mapGroup, gSaveBlock1Ptr->escapeWarp.mapNum);
gRegionMap->mapSecId = mapHeader->regionMapSectionId;