Skip to content

Fix inventory item comparison and quantity updates#161

Merged
Torwent merged 1 commit intoWaspScripts:mainfrom
Rico-Rodriguez:patch-7
Feb 14, 2026
Merged

Fix inventory item comparison and quantity updates#161
Torwent merged 1 commit intoWaspScripts:mainfrom
Rico-Rodriguez:patch-7

Conversation

@Rico-Rodriguez
Copy link
Contributor

the code loops n but indexes bitems[i], which will crash when the layout has fewer bank items than slots.

With a small bank-item list (high 8) and inventory slot index i = 9+, it throws exactly: Index out of range (index:9, low:0, high:8).

the code loops n but indexes bitems[i], which will crash when the layout has fewer bank items than slots. 

With a small bank-item list (high 8) and inventory slot index i = 9+, it throws exactly: Index out of range (index:9, low:0, high:8).
@Torwent
Copy link
Collaborator

Torwent commented Feb 14, 2026

Oops! Nice catch. Thanks

@Torwent Torwent merged commit 1ed2fc7 into WaspScripts:main Feb 14, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants