diff --git a/Source/items.cpp b/Source/items.cpp index cda99084c..06e5401fc 100644 --- a/Source/items.cpp +++ b/Source/items.cpp @@ -4133,11 +4133,11 @@ int RndSmithItem(int lvl) void BubbleSwapItem(ItemStruct *a, ItemStruct *b) { - ItemStruct h; // [esp+8h] [ebp-170h] + ItemStruct h; - qmemcpy(&h, a, sizeof(h)); - qmemcpy(a, b, sizeof(ItemStruct)); - qmemcpy(b, &h, sizeof(ItemStruct)); + h = *a; + *a = *b; + *b = h; } void SortSmith()