Fixed issue where dropping an item wasn't removing it from ItemData

This commit is contained in:
Collin Smith 2020-05-30 20:15:08 -07:00
parent 46581d11e1
commit b798645f02

View File

@ -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);
}