From b798645f0290d8b1807d792362bfb25a48be3eaa Mon Sep 17 00:00:00 2001 From: Collin Smith Date: Sat, 30 May 2020 20:15:08 -0700 Subject: [PATCH] Fixed issue where dropping an item wasn't removing it from ItemData --- core/src/com/riiablo/save/ItemData.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/riiablo/save/ItemData.java b/core/src/com/riiablo/save/ItemData.java index 97be2a07..69857885 100644 --- a/core/src/com/riiablo/save/ItemData.java +++ b/core/src/com/riiablo/save/ItemData.java @@ -213,7 +213,7 @@ public class ItemData { // TODO: should item location change if the item is dropped? is this what UNK3 and UNK5 represent? void drop() { assert cursor != INVALID_ITEM; - Item item = itemData.get(cursor); + Item item = remove(cursor); cursor = INVALID_ITEM; setLocation(item, null); }