[bugfix] Don't set iType on empty item slots.

This confuses ItemManager::findFreeSlot().
This commit is contained in:
2020-09-12 02:25:45 +02:00
parent 579aa9d31d
commit 5747c24479
5 changed files with 5 additions and 8 deletions

View File

@@ -44,7 +44,7 @@ void NPCManager::npcVendorBuy(CNSocket* sock, CNPacketData* data) {
if (slot != req->iInvenSlotNum) {
// possible item stacking?
std::cout << "[WARN] Client and server disagree on bought item slot" << std::endl;
std::cout << "[WARN] Client and server disagree on bought item slot (" << req->iInvenSlotNum << " vs " << slot << ")" << std::endl;
}
INITSTRUCT(sP_FE2CL_REP_PC_VENDOR_ITEM_BUY_SUCC, resp);