Fix safari zone player healthbox (#4927)
This commit is contained in:
parent
637a7072f0
commit
8ec3a85706
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue