mirror of https://github.com/pret/pokeemerald.git
battle_anim_mons: Make cast not depend on size of struct
This commit is contained in:
parent
ec92241d8f
commit
6963c00016
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue