Fixed another crash when removing items from the Bag

This commit is contained in:
Maruno17
2021-10-19 13:58:19 +01:00
parent 50065754a0
commit aee0595d3f

View File

@@ -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