From 3da0da2e25836564c0b2e02a4acd80c40d58dc26 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Thu, 11 Apr 2019 17:48:50 +0200 Subject: [PATCH] Clean up BubbleSwapItem --- Source/items.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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()