Fixed equip artifact out of bounds exception.

This commit is contained in:
MobiusDevelopment
2021-08-14 12:16:05 +00:00
parent 5777b4ac77
commit 5acc6f0335
12 changed files with 24 additions and 24 deletions

View File

@@ -2377,7 +2377,7 @@ public abstract class Inventory extends ItemContainer
{
for (int i = PAPERDOLL_ARTIFACT19; i < (PAPERDOLL_ARTIFACT19 + slotNumber); i++)
{
if (_paperdoll[i] == null)
if ((i <= PAPERDOLL_ARTIFACT21) && (_paperdoll[i] == null))
{
setPaperdollItem(i, item);
return;
@@ -2389,7 +2389,7 @@ public abstract class Inventory extends ItemContainer
{
for (int i = PAPERDOLL_ARTIFACT1; i < (PAPERDOLL_ARTIFACT1 + (4 * slotNumber)); i++)
{
if (_paperdoll[i] == null)
if ((i <= PAPERDOLL_ARTIFACT21) && (_paperdoll[i] == null))
{
setPaperdollItem(i, item);
return;