mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-02-01 02:14:32 +07:00
Fixed issue where dropping an item wasn't removing it from ItemData
This commit is contained in:
parent
46581d11e1
commit
b798645f02
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user