Skip to content

Commit

Permalink
change it_80283C48 to use offsets from HeartContainerVars
Browse files Browse the repository at this point in the history
  • Loading branch information
wyatt-avilla committed Feb 27, 2024
1 parent 84f805b commit bb669e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/melee/it/items/itheart.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@ void it_80283C48(Item_GObj* gobj)
{
Item* ip = GET_ITEM(gobj);

if ((s8) ((s32) ((ip->xDD4_itemVar.pokemon.padding[4] << 0x18) &
if ((s8) ((s32) ((ip->xDD4_itemVar.HeartContainer.xDD8.flags << 0x18) &
0xC0000000) >>
0x1F) != 0)
{
M2C_FIELD((&gm_80473A18 + M2C_BITWISE(s32, ip->xDD4_itemVar.star.x8)),
s8*, 0x90) = 0;
M2C_FIELD((&gm_80473A18 + ip->xDD4_itemVar.HeartContainer.xDDC), s8*,
0x90) = 0;
}
}

Expand Down

0 comments on commit bb669e6

Please sign in to comment.