The index can never be equal to the array length.

This commit is contained in:
MobiusDevelopment
2020-11-02 23:33:24 +00:00
parent 494b39a3ab
commit 040af7569b
57 changed files with 78 additions and 78 deletions

View File

@ -93,12 +93,12 @@ public class ArmorSetData implements IXmlReader
public boolean setExists(int chestId)
{
return (_armorSets.length >= chestId) && (_armorSets[chestId] != null);
return (_armorSets.length > chestId) && (_armorSets[chestId] != null);
}
public ArmorSet getSet(int chestId)
{
if (_armorSets.length >= chestId)
if (_armorSets.length > chestId)
{
return _armorSets[chestId];
}