Fix wrong index being used for storage items

This commit is contained in:
Vortrex
2021-11-28 22:47:35 -06:00
parent 988bc24b19
commit 3e9b09f0f9

View File

@@ -1354,7 +1354,7 @@ function listItemInventoryCommand(command, params, client) {
return false;
}
if(getItemTypeData(getItemData(getItemData(itemId).itemCache[i]).itemTypeIndex).useType != VRR_ITEM_USETYPE_STORAGE) {
if(getItemTypeData(getItemData(itemId).itemTypeIndex).useType != VRR_ITEM_USETYPE_STORAGE) {
messagePlayerError(client, "This item can't hold anything!");
return false;
}