Minor check fix for request item ensoul.

This commit is contained in:
MobiusDev
2017-09-22 17:11:46 +00:00
parent d571278f5f
commit 0205eb4231
3 changed files with 3 additions and 3 deletions

View File

@@ -57,7 +57,7 @@ public class RequestItemEnsoul implements IClientIncomingPacket
final int position = packet.readC();
final int soulCrystalObjectId = packet.readD();
final int soulCrystalOption = packet.readD();
if ((position > 0) && (position <= 3) && ((type == 1) || (type == 2)))
if ((position > 0) && (position < 3) && ((type == 1) || (type == 2)))
{
_options[i] = new EnsoulItemOption(type, position, soulCrystalObjectId, soulCrystalOption);
}

View File

@@ -57,7 +57,7 @@ public class RequestItemEnsoul implements IClientIncomingPacket
final int position = packet.readC();
final int soulCrystalObjectId = packet.readD();
final int soulCrystalOption = packet.readD();
if ((position > 0) && (position <= 3) && ((type == 1) || (type == 2)))
if ((position > 0) && (position < 3) && ((type == 1) || (type == 2)))
{
_options[i] = new EnsoulItemOption(type, position, soulCrystalObjectId, soulCrystalOption);
}

View File

@@ -57,7 +57,7 @@ public class RequestItemEnsoul implements IClientIncomingPacket
final int position = packet.readC();
final int soulCrystalObjectId = packet.readD();
final int soulCrystalOption = packet.readD();
if ((position > 0) && (position <= 3) && ((type == 1) || (type == 2)))
if ((position > 0) && (position < 3) && ((type == 1) || (type == 2)))
{
_options[i] = new EnsoulItemOption(type, position, soulCrystalObjectId, soulCrystalOption);
}