mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-27 04:04:17 +01:00
port MovementAction_StoreAndLockAnim_Step0 fix
This commit is contained in:
parent
43701c3860
commit
539fd463c8
@ -8865,15 +8865,13 @@ u8 (*const gMovementActionFuncs_FlyDown[])(struct ObjectEvent *, struct Sprite *
|
|||||||
|
|
||||||
u8 MovementAction_StoreAndLockAnim_Step0(struct ObjectEvent *objectEvent, struct Sprite *sprite)
|
u8 MovementAction_StoreAndLockAnim_Step0(struct ObjectEvent *objectEvent, struct Sprite *sprite)
|
||||||
{
|
{
|
||||||
u32 one;
|
|
||||||
bool32 ableToStore = FALSE;
|
bool32 ableToStore = FALSE;
|
||||||
if (gLockedAnimObjectEvents == NULL)
|
if (gLockedAnimObjectEvents == NULL)
|
||||||
{
|
{
|
||||||
gLockedAnimObjectEvents = AllocZeroed(sizeof(struct LockedAnimObjectEvents));
|
gLockedAnimObjectEvents = AllocZeroed(sizeof(struct LockedAnimObjectEvents));
|
||||||
gLockedAnimObjectEvents->objectEventIds[0] = objectEvent->localId;
|
gLockedAnimObjectEvents->objectEventIds[0] = objectEvent->localId;
|
||||||
// needed to match
|
gLockedAnimObjectEvents->count = 1;
|
||||||
gLockedAnimObjectEvents->count = (one = 1);
|
ableToStore = TRUE;
|
||||||
ableToStore = one;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user