Length check for armor set getters.

This commit is contained in:
MobiusDevelopment
2020-08-03 14:09:21 +00:00
parent 4d9f34b5ba
commit 917c02c7da
19 changed files with 99 additions and 23 deletions

View File

@ -178,7 +178,11 @@ public class ArmorSetData implements IXmlReader
*/
public ArmorSet getSet(int setId)
{
return _armorSets[setId];
if (_armorSets.length >= setId)
{
return _armorSets[setId];
}
return null;
}
/**