From 08306e6a69c2ffb883389b247d2040b354f99530 Mon Sep 17 00:00:00 2001 From: Guillaume Dupuy Date: Thu, 16 Mar 2017 12:47:36 +0100 Subject: [PATCH] Minor fixes --HG-- branch : item_group --- code/ryzom/client/src/item_group_manager.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/code/ryzom/client/src/item_group_manager.cpp b/code/ryzom/client/src/item_group_manager.cpp index 1f72eed4d..b987420c8 100644 --- a/code/ryzom/client/src/item_group_manager.cpp +++ b/code/ryzom/client/src/item_group_manager.cpp @@ -117,7 +117,7 @@ void CItemGroup::readFrom(xmlNodePtr node) std::string slot; ptrName = (char*) xmlGetProp(curNode, (xmlChar*)"slot"); if (ptrName) NLMISC::fromString((const char*)ptrName, slot); - nlinfo("Got a slot %s", slot.c_str()); + slot = NLMISC::toUpper(slot); if(SLOTTYPE::stringToSlotType(slot) != SLOTTYPE::UNDEFINED) removeBeforeEquip.push_back(SLOTTYPE::stringToSlotType(slot)); } @@ -339,7 +339,6 @@ bool CItemGroupManager::equipGroup(std::string name, bool pullBefore) for(int i=0; i < group->removeBeforeEquip.size(); i++) { SLOTTYPE::TSlotType slot = group->removeBeforeEquip[i]; - nlinfo("removing slot %d", slot); std::string dbPath; if(slot > SLOTTYPE::RIGHT_HAND) dbPath = "LOCAL:INVENTORY:HAND:"; @@ -347,7 +346,6 @@ bool CItemGroupManager::equipGroup(std::string name, bool pullBefore) dbPath = "LOCAL:INVENTORY:EQUIP:"; //offset by 1 : TSlotType begins at 1 for actual items (because of UNDEFINED), whereas dbPath start at 0 dbPath += NLMISC::toString((uint8)slot - 1); - nlinfo("Removing path %s", dbPath.c_str()); CInventoryManager::getInstance()->unequip(dbPath); }