The index can never be equal to the array length.
This commit is contained in:
@ -155,7 +155,7 @@ public class AppearanceItemData implements IXmlReader
|
||||
|
||||
public AppearanceStone getStone(int stone)
|
||||
{
|
||||
if (_stones.length >= stone)
|
||||
if (_stones.length > stone)
|
||||
{
|
||||
return _stones[stone];
|
||||
}
|
||||
|
@ -185,7 +185,7 @@ public class ArmorSetData implements IXmlReader
|
||||
*/
|
||||
public ArmorSet getSet(int setId)
|
||||
{
|
||||
if (_armorSets.length >= setId)
|
||||
if (_armorSets.length > setId)
|
||||
{
|
||||
return _armorSets[setId];
|
||||
}
|
||||
@ -198,7 +198,7 @@ public class ArmorSetData implements IXmlReader
|
||||
*/
|
||||
public List<ArmorSet> getSets(int itemId)
|
||||
{
|
||||
if (_itemSets.length >= itemId)
|
||||
if (_itemSets.length > itemId)
|
||||
{
|
||||
final List<ArmorSet> sets = _itemSets[itemId];
|
||||
if (sets != null)
|
||||
|
@ -119,7 +119,7 @@ public class OptionData implements IXmlReader
|
||||
|
||||
public Options getOptions(int id)
|
||||
{
|
||||
if (_options.length >= id)
|
||||
if (_options.length > id)
|
||||
{
|
||||
return _options[id];
|
||||
}
|
||||
|
Reference in New Issue
Block a user