mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-07-05 07:48:05 +07:00
Fixed bug where item data initialization would read data outside bounds
This commit is contained in:
@ -286,7 +286,7 @@ public class ItemData {
|
||||
|
||||
IntArray inventoryItems = getStore(StoreLoc.INVENTORY);
|
||||
cache = inventoryItems.items;
|
||||
for (int i = 0, s = cache.length, j; i < s; i++) {
|
||||
for (int i = 0, s = inventoryItems.size, j; i < s; i++) {
|
||||
j = cache[i];
|
||||
if (j == INVALID_ITEM) continue;
|
||||
Item item = itemData.get(j);
|
||||
|
Reference in New Issue
Block a user