1
0

Simplified the HandleAnvilItemName() code.

This commit is contained in:
Howaner 2014-05-06 17:31:02 +02:00
parent dca3af1f0f
commit 27f95454a9

View File

@ -790,15 +790,10 @@ void cClientHandle::HandleAnvilItemName(const char * a_Data, size_t a_Length)
return;
}
cByteBuffer Buffer(a_Length);
Buffer.Write(a_Data, a_Length);
AString Name;
Buffer.ReadAll(Name);
AString Name(a_Data, a_Length);
if (Name.length() <= 30)
{
((cAnvilWindow&)*m_Player->GetWindow()).SetRepairedItemName(Name, m_Player);
((cAnvilWindow *)m_Player->GetWindow())->SetRepairedItemName(Name, m_Player);
}
}