doFuncItem.cpp
in this function
Code:
void do_ItemWear(CPC* ch, CNetMsg::SP& msg)
Code:
CItem* item = ch->m_inventory.getItem(packet->tab, packet->invenIndex);
Quote:
If you are not removing the wearpos from the packet a fix just checking for pets is not the best idea so you can still put other items on places where they should never be.
rather do:
Code:if (packet->wearPos != item->m_itemProto->getItemWearing()) { CNetMsg::SP rmsg(new CNetMsg); ResponseClient::ItemWearMsg(rmsg, ResponseClient::WEAR_ERR_INVALID_POS); SEND_Q(rmsg, ch->m_desc); return; }






