Describe the bug
When loading some auto-saves, some inventory entries have values outside of the normal bounds. An example is a slot ID of 68 which is beyond the normal 0-19 range. This causes an overflow error when calculating where on the UI to draw the item because it was never intended to handle more than 20 items.
Steps to Reproduce
Load an auto-save.
Hope it happens.
Expected behavior
Displays all player inventory correctly without throwing KeyNotFoundException (Item/Weapon ID) or OverflowException (Slot ID).
Computer Information:
Describe the bug When loading some auto-saves, some inventory entries have values outside of the normal bounds. An example is a slot ID of 68 which is beyond the normal 0-19 range. This causes an overflow error when calculating where on the UI to draw the item because it was never intended to handle more than 20 items.
Steps to Reproduce
Expected behavior Displays all player inventory correctly without throwing KeyNotFoundException (Item/Weapon ID) or OverflowException (Slot ID).
Screenshots
Additional context Reported by Orchlon.