mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 21:24:59 +00:00
Fixed crash when removing items from the Bag
This commit is contained in:
@@ -106,7 +106,7 @@ class PokemonBag
|
||||
def remove(item, qty = 1)
|
||||
item_data = GameData::Item.try_get(item)
|
||||
return false if !item_data
|
||||
pocket = item.pocket
|
||||
pocket = item_data.pocket
|
||||
return ItemStorageHelper.remove(@pockets[pocket], item.id, qty)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user