From 4bbc2e56a0c360c588c0a696d7ae82f3d33cb2d7 Mon Sep 17 00:00:00 2001 From: ephphatha Date: Sun, 27 Mar 2022 12:07:18 +1100 Subject: [PATCH] Restore position of dropped note when recombining fragments --- Source/inv.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/inv.cpp b/Source/inv.cpp index 7a3da47d4..0ca60dd6e 100644 --- a/Source/inv.cpp +++ b/Source/inv.cpp @@ -950,9 +950,11 @@ void TryCombineNaKrulNotes(Player &player, Item ¬eItem) } } + Point position = noteItem.position; // copy the position to restore it after re-initialising the item noteItem = {}; GetItemAttrs(noteItem, IDI_FULLNOTE, 16); SetupItem(noteItem); + noteItem.position = position; // this ensures CleanupItem removes the entry in the dropped items lookup table } void CheckQuestItem(Player &player, Item &questItem)