summaryrefslogtreecommitdiff
path: root/src/region_map.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2021-11-15 12:04:54 -0500
committerGriffinR <griffin.g.richards@gmail.com>2021-11-16 10:53:00 -0500
commit04cc923d6c17edae778f14cb431991867a05cf65 (patch)
treeb6e1b5bede12da3f64293dde84b1b09f08d40053 /src/region_map.c
parentc1130592faa26f4e555142c48bdc02c1378ff1ee (diff)
Handle optional arguments for warp commands, add WARP_ID_NONE
Diffstat (limited to 'src/region_map.c')
-rw-r--r--src/region_map.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/region_map.c b/src/region_map.c
index 021ef7c71..7a44efd10 100644
--- a/src/region_map.c
+++ b/src/region_map.c
@@ -7,7 +7,6 @@
#include "palette.h"
#include "party_menu.h"
#include "trig.h"
-#include "constants/maps.h"
#include "overworld.h"
#include "event_data.h"
#include "secret_base.h"
@@ -2018,7 +2017,7 @@ static void CB_ExitFlyMap(void)
if (sMapHealLocations[sFlyMap->regionMap.mapSecId][2] != 0)
SetWarpDestinationToHealLocation(sMapHealLocations[sFlyMap->regionMap.mapSecId][2]);
else
- SetWarpDestinationToMapWarp(sMapHealLocations[sFlyMap->regionMap.mapSecId][0], sMapHealLocations[sFlyMap->regionMap.mapSecId][1], -1);
+ SetWarpDestinationToMapWarp(sMapHealLocations[sFlyMap->regionMap.mapSecId][0], sMapHealLocations[sFlyMap->regionMap.mapSecId][1], WARP_ID_NONE);
break;
}
ReturnToFieldFromFlyMapSelect();