Fix safari zone player healthbox (#4927)

This commit is contained in:
Bassoonian 2024-07-08 18:10:25 +02:00 committed by GitHub
parent 637a7072f0
commit 8ec3a85706
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -330,6 +330,9 @@ void UpdateIndicatorVisibilityAndType(u32 healthboxId, bool32 invisible)
u32 palTag = GetIndicatorPalTag(battler);
struct Sprite *sprite = &gSprites[GetIndicatorSpriteId(healthboxId)];
if (GetIndicatorSpriteId(healthboxId) == 0) // safari zone means the player doesn't have an indicator sprite id
return;
if (tileTag != TAG_NONE && palTag != TAG_NONE)
{
sprite->oam.tileNum = GetSpriteTileStartByTag(tileTag);