fix MapHasNoEncounterData

This commit is contained in:
ghoulslash 2022-10-18 20:37:33 -04:00
parent 7431044da1
commit e1021af6bd

View file

@ -965,11 +965,6 @@ u8 ChooseHiddenMonIndex(void)
bool32 MapHasNoEncounterData(void)
{
u16 headerId = GetCurrentMapWildMonHeaderId();
const struct WildPokemonInfo *landMonsInfo = gWildMonHeaders[headerId].landMonsInfo;
const struct WildPokemonInfo *waterMonsInfo = gWildMonHeaders[headerId].waterMonsInfo;
const struct WildPokemonInfo *hiddenMonsInfo = gWildMonHeaders[headerId].hiddenMonsInfo;
return (landMonsInfo == NULL && waterMonsInfo == NULL && hiddenMonsInfo == NULL);
return (GetCurrentMapWildMonHeaderId() == HEADER_NONE);
}