Squirrelies / RE2REmakeSRT

An SRT (SpeedRun Tool) for Resident Evil 2 (2019).
MIT License
48 stars 11 forks source link

[BUG] Scrambled Slot ID and/or Item/Weapon ID on loading some auto-saves. #5

Closed Squirrelies closed 5 years ago

Squirrelies commented 5 years ago

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

  1. Load an auto-save.
  2. Hope it happens.

Expected behavior Displays all player inventory correctly without throwing KeyNotFoundException (Item/Weapon ID) or OverflowException (Slot ID).

Screenshots

Additional context Reported by Orchlon.

Squirrelies commented 5 years ago

Slot ID

Hand Grenade should be slot 9 but is slot 68.