Don't write to NULL in TryFindHiddenPokemon (#5983)
This commit is contained in:
parent
81d877339c
commit
83979375d3
@ -2499,7 +2499,8 @@ bool8 TryFindHiddenPokemon(void)
|
||||
|| FlagGet(FLAG_SYS_DEXNAV_SEARCH)
|
||||
|| GetFlashLevel() > 0)
|
||||
{
|
||||
(*stepPtr) = 0;
|
||||
if (stepPtr != NULL)
|
||||
(*stepPtr) = 0;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user