diff --git a/src/battle_anim_mons.c b/src/battle_anim_mons.c index 861c5f6ca5..e5a866999c 100644 --- a/src/battle_anim_mons.c +++ b/src/battle_anim_mons.c @@ -1743,7 +1743,7 @@ void PrepareAffineAnimInTaskData(struct Task *task, u8 spriteId, const union Aff bool8 RunAffineAnimFromTaskData(struct Task *task) { - gAnimTaskAffineAnim = LoadPointerFromVars(task->data[13], task->data[14]) + (task->data[7] << 3); + gAnimTaskAffineAnim = &((union AffineAnimCmd *)LoadPointerFromVars(task->data[13], task->data[14]))[task->data[7]]; switch (gAnimTaskAffineAnim->type) { default: