mirror of
https://github.com/pret/pokeemerald.git
synced 2026-09-30 22:07:24 -05:00
Don't write to NULL in TryFindHiddenPokemon (#5983)
This commit is contained in:
@@ -2499,7 +2499,8 @@ bool8 TryFindHiddenPokemon(void)
|
||||
|| FlagGet(FLAG_SYS_DEXNAV_SEARCH)
|
||||
|| GetFlashLevel() > 0)
|
||||
{
|
||||
(*stepPtr) = 0;
|
||||
if (stepPtr != NULL)
|
||||
(*stepPtr) = 0;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user