[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

@@ -130,7 +130,7 @@ void CNLoginServer::handlePacket(CNSocket* sock, CNPacketData* data) {
for (int i = 5; i < AEQUIP_COUNT; i++) {
// empty equips
charInfo.aEquip[i].iID = 0;
charInfo.aEquip[i].iType = i;
charInfo.aEquip[i].iType = 0;
charInfo.aEquip[i].iOpt = 0;
}