mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 21:24:59 +00:00
Fixed another crash when removing items from the Bag
This commit is contained in:
@@ -107,7 +107,7 @@ class PokemonBag
|
||||
item_data = GameData::Item.try_get(item)
|
||||
return false if !item_data
|
||||
pocket = item_data.pocket
|
||||
return ItemStorageHelper.remove(@pockets[pocket], item.id, qty)
|
||||
return ItemStorageHelper.remove(@pockets[pocket], item_data.id, qty)
|
||||
end
|
||||
|
||||
# Deletes qty number of item. Doesn't delete anything if there are less than
|
||||
|
||||
Reference in New Issue
Block a user