Browse Source

Clean up SwapItem

pull/88/head
Anders Jenbo 7 years ago
parent
commit
abacbb485c
  1. 13
      Source/inv.cpp

13
Source/inv.cpp

@ -799,14 +799,13 @@ int WeaponAutoPlace(int pnum)
int SwapItem(ItemStruct *a, ItemStruct *b) int SwapItem(ItemStruct *a, ItemStruct *b)
{ {
int v2; // eax ItemStruct h;
ItemStruct h; // [esp+8h] [ebp-170h]
h = *a;
*a = *b;
*b = h;
qmemcpy(&h, a, sizeof(h)); return h._iCurs + CURSOR_FIRSTITEM;
v2 = h._iCurs;
qmemcpy(a, b, sizeof(ItemStruct));
qmemcpy(b, &h, sizeof(ItemStruct));
return v2 + CURSOR_FIRSTITEM;
} }
void CheckInvPaste(int pnum, int mx, int my) void CheckInvPaste(int pnum, int mx, int my)

Loading…
Cancel
Save