Remove out of bounds gSprites access in move relearner (#5991)
This commit is contained in:
parent
75a2d419e1
commit
3c7708fae4
@ -1007,7 +1007,6 @@ void MoveRelearnerShowHideCategoryIcon(s32 moveId)
|
||||
DestroySprite(&gSprites[sMoveRelearnerStruct->categoryIconSpriteId]);
|
||||
|
||||
sMoveRelearnerStruct->categoryIconSpriteId = 0xFF;
|
||||
gSprites[sMoveRelearnerStruct->categoryIconSpriteId].invisible = TRUE;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user