Use inventory_list.length instead of separately tracking the item count with inventory_items variable.
Use inventory_list.length instead of separately tracking the item count with inventory_items variable.

Seems to fix the bug where items in inventory turn invisible after an item is destroyed from using them on other items or objects. There's some more inventory bugs though, maybe new ones thanks to this.

evktalo/kiigame,PrinsessaDiana/kiigame,PrinsessaDiana/kiigame,evktalo/kiigame