mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 05:34:58 +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)
|
item_data = GameData::Item.try_get(item)
|
||||||
return false if !item_data
|
return false if !item_data
|
||||||
pocket = item_data.pocket
|
pocket = item_data.pocket
|
||||||
return ItemStorageHelper.remove(@pockets[pocket], item.id, qty)
|
return ItemStorageHelper.remove(@pockets[pocket], item_data.id, qty)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Deletes qty number of item. Doesn't delete anything if there are less than
|
# Deletes qty number of item. Doesn't delete anything if there are less than
|
||||||
|
|||||||
Reference in New Issue
Block a user