summaryrefslogtreecommitdiffstats
path: root/pokemodr/MapWarpUI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pokemodr/MapWarpUI.cpp')
-rw-r--r--pokemodr/MapWarpUI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/pokemodr/MapWarpUI.cpp b/pokemodr/MapWarpUI.cpp
index 341ccbd0..01364df7 100644
--- a/pokemodr/MapWarpUI.cpp
+++ b/pokemodr/MapWarpUI.cpp
@@ -87,7 +87,7 @@ void MapWarpUI::setGui()
{
varToWarp->clear();
int index = mapWarp->getPokemod()->getMapIndex(mapWarp_mod->getToMap());
- if (index != -1)
+ if (index != INT_MAX)
{
try
{