Fixed broken palette load for shiny followers in the sprite visualizer (#6683)

Co-authored-by: Hedara <hedara90@gmail.com>
This commit is contained in:
hedara90 2025-04-23 12:17:54 +02:00 committed by GitHub
parent 71cfab6477
commit 6fdb6a9e34
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1840,13 +1840,10 @@ u8 CreateObjectGraphicsSprite(u16 graphicsId, void (*callback)(struct Sprite *),
const struct ObjectEventGraphicsInfo *graphicsInfo = GetObjectEventGraphicsInfo(graphicsId);
struct Sprite *sprite;
u8 spriteId;
bool32 isShiny = graphicsId & OBJ_EVENT_MON_SHINY;
spriteTemplate = Alloc(sizeof(struct SpriteTemplate));
CopyObjectGraphicsInfoToSpriteTemplate(graphicsId, callback, spriteTemplate, &subspriteTables);
if (isShiny)
graphicsId -= SPECIES_SHINY_TAG;
if (OW_GFX_COMPRESS)
{