1
0

Fixed Server Crash

This commit is contained in:
daniel0916 2014-04-13 13:36:03 +02:00
parent 1429d2f1b1
commit c88464e62a

View File

@ -2690,6 +2690,12 @@ void cClientHandle::SocketClosed(void)
void cClientHandle::HandleEnchantItem(Byte & WindowID, Byte & Enchantment)
{
cItem Item = m_Player->GetDraggingItem();
if (!cItem::IsEnchantable(Item.m_ItemType))
{
return;
}
cEnchantingWindow * Window = (cEnchantingWindow*)m_Player->GetWindow();
int BaseEnchantmentLevel = Window->GetPropertyValue(Enchantment);