Fixed Server Crash
This commit is contained in:
parent
1429d2f1b1
commit
c88464e62a
@ -2690,6 +2690,12 @@ void cClientHandle::SocketClosed(void)
|
|||||||
void cClientHandle::HandleEnchantItem(Byte & WindowID, Byte & Enchantment)
|
void cClientHandle::HandleEnchantItem(Byte & WindowID, Byte & Enchantment)
|
||||||
{
|
{
|
||||||
cItem Item = m_Player->GetDraggingItem();
|
cItem Item = m_Player->GetDraggingItem();
|
||||||
|
|
||||||
|
if (!cItem::IsEnchantable(Item.m_ItemType))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
cEnchantingWindow * Window = (cEnchantingWindow*)m_Player->GetWindow();
|
cEnchantingWindow * Window = (cEnchantingWindow*)m_Player->GetWindow();
|
||||||
int BaseEnchantmentLevel = Window->GetPropertyValue(Enchantment);
|
int BaseEnchantmentLevel = Window->GetPropertyValue(Enchantment);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user