From a5496dd9d7b038ee18178c7afbaa700b6571c686 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Thu, 11 Apr 2019 18:48:57 +0200 Subject: [PATCH] Clean up SpawnBoy --- Source/items.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/items.cpp b/Source/items.cpp index a1ae16632..e5ed25d4d 100644 --- a/Source/items.cpp +++ b/Source/items.cpp @@ -4442,7 +4442,7 @@ void SpawnBoy(int lvl) GetItemAttrs(0, itype, lvl); GetItemBonus(0, itype, lvl, 2 * lvl, 1); } while (item[0]._iIvalue > 90000); - qmemcpy(&boyitem, item, sizeof(boyitem)); + boyitem = *item; boyitem._iCreateInfo = lvl | 0x1000; boyitem._iIdentified = TRUE; boyitem._iStatFlag = StoreStatOk(&boyitem);