[Chests Anywhere] crash when player clicks unavailable backpack slot
Pathoschild opened this issue ยท 1 comments
Imported from Pathoschild/ChestsAnywhere#3. Original date: 2016-10-06 05:36 UTC.
If a player doesn't have the full backpack, some slots are unavailable and grayed out:
Clicking one of the disabled slots crashes the game:
An error occured in the base update loop: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at System.Collections.Generic.List`1.get_Item(Int32 index)
at ChestsAnywhere.Components.ChestWithInventory.receiveLeftClick(Int32 x, Int32 y, Boolean playSound)
at ChestsAnywhere.Components.AccessChestMenu.receiveLeftClick(Int32 x, Int32 y, Boolean playSound)
at StardewValley.Game1.updateActiveMenu(GameTime gameTime) in C:\Users\tomc\Documents\Visual Studio 2010\Projects\Stardew.XNA\Farmer\Farmer\Game1.cs:line 1829
at StardewValley.Game1.Update(GameTime gameTime) in C:\Users\tomc\Documents\Visual Studio 2010\Projects\Stardew.XNA\Farmer\Farmer\Game1.cs:line 1568
at StardewModdingAPI.Inheritance.SGame.Update(GameTime gameTime)
This bug has been around since 1.0.
Reported by several users: 2016-10-05 anonymouseling via Nexus comment, 2016-10-08 Bainon via Nexus bug, and 2016-10-08 Littlegal2016 via forums.
Imported from Pathoschild/ChestsAnywhere#3. Original date: 2016-10-07 00:26 UTC.
Fixed in the upcoming 1.5 release.