ExEnchantSkillInfoDetail NPE fix.

This commit is contained in:
MobiusDev 2017-08-17 22:44:16 +00:00
parent cef955f9e0
commit 39a6705f3e

View File

@ -50,7 +50,7 @@ public class ExEnchantSkillInfoDetail implements IClientOutgoingPacket
packet.writeD(_type.ordinal());
packet.writeD(_skillId);
packet.writeD(_skillLvl);
if (_enchantSkillHolder != null)
if ((_enchantSkillHolder != null) && (_type != SkillEnchantType.UNTRAIN))
{
packet.writeQ(_enchantSkillHolder.getSp(_type));
packet.writeD(_enchantSkillHolder.getChance(_type));