summaryrefslogtreecommitdiff
path: root/src/item.c
diff options
context:
space:
mode:
authorDizzyEggg <jajkodizzy@wp.pl>2018-08-30 15:01:07 +0200
committerDizzyEggg <jajkodizzy@wp.pl>2018-08-30 15:01:07 +0200
commitbc9fe72c6e85b1930f137ed49c5d2b0c4e4b10de (patch)
tree3dac926becb2309a80e6ec201700953f09bc2ef2 /src/item.c
parent8e5c72766c2efd2d3d4e490232fcd5f6c265fe06 (diff)
Do some pyramid bag
Diffstat (limited to 'src/item.c')
-rw-r--r--src/item.c5
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)