Remove out of bounds gSprites access in move relearner (#5991)

This commit is contained in:
DizzyEggg 2025-01-10 17:00:30 +01:00 committed by GitHub
parent 75a2d419e1
commit 3c7708fae4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1007,7 +1007,6 @@ void MoveRelearnerShowHideCategoryIcon(s32 moveId)
DestroySprite(&gSprites[sMoveRelearnerStruct->categoryIconSpriteId]);
sMoveRelearnerStruct->categoryIconSpriteId = 0xFF;
gSprites[sMoveRelearnerStruct->categoryIconSpriteId].invisible = TRUE;
}
else
{