Fix incorrect MAPSEC limit for map names
This commit is contained in:
+1
-1
@@ -3803,7 +3803,7 @@ u8 *GetMapName(u8 *dst0, u16 mapsec, u16 fill)
|
||||
u8 *dst;
|
||||
u16 i;
|
||||
u16 idx;
|
||||
if ((idx = mapsec - KANTO_MAPSEC_START) <= MAPSEC_SPECIAL_AREA - KANTO_MAPSEC_START)
|
||||
if ((idx = mapsec - KANTO_MAPSEC_START) < MAPSEC_NONE - KANTO_MAPSEC_START)
|
||||
{
|
||||
if (IsCeladonDeptStoreMapsec(mapsec) == TRUE)
|
||||
dst = StringCopy(dst0, sMapsecName_CELADON_DEPT_);
|
||||
|
||||
Reference in New Issue
Block a user