diff options
Diffstat (limited to 'src/item.c')
-rw-r--r-- | src/item.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/item.c b/src/item.c index 22894bbff..29c250989 100644 --- a/src/item.c +++ b/src/item.c @@ -752,9 +752,8 @@ u16 BagGetQuantityByPocketPosition(u8 pocketId, u16 pocketPos) static void SwapItemSlots(struct ItemSlot *a, struct ItemSlot *b) { - struct ItemSlot temp = *a; - *a = *b; - *b = temp; + struct ItemSlot temp; + SWAP(*a, *b, temp); } void CompactItemsInBagPocket(struct BagPocket *bagPocket) |