diff options
author | DizzyEggg <jajkodizzy@wp.pl> | 2018-08-30 15:01:07 +0200 |
---|---|---|
committer | DizzyEggg <jajkodizzy@wp.pl> | 2018-08-30 15:01:07 +0200 |
commit | bc9fe72c6e85b1930f137ed49c5d2b0c4e4b10de (patch) | |
tree | 3dac926becb2309a80e6ec201700953f09bc2ef2 /src/item.c | |
parent | 8e5c72766c2efd2d3d4e490232fcd5f6c265fe06 (diff) |
Do some pyramid bag
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) |