Don't write to NULL in TryFindHiddenPokemon (#5983)

This commit is contained in:
DizzyEggg 2025-01-09 15:19:07 +01:00 committed by GitHub
parent 81d877339c
commit 83979375d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2499,7 +2499,8 @@ bool8 TryFindHiddenPokemon(void)
|| FlagGet(FLAG_SYS_DEXNAV_SEARCH)
|| GetFlashLevel() > 0)
{
(*stepPtr) = 0;
if (stepPtr != NULL)
(*stepPtr) = 0;
return FALSE;
}