SlappedWithSilence / TXEnginePy

A Python port of the original TXEngine project
3 stars 0 forks source link

ViewInventoryAction does not handle stack size of zero after using an item #44

Open SlappedWithSilence opened 1 year ago

SlappedWithSilence commented 1 year ago

If you use an consumable Usable with quantity 1, the quantity is then decremented to zero and the stack is auto-removed by the InventoryController logic. The ViewInventoryAction does not detect this and then tries to view that stack index, thus causing a crash.