diff --git a/code/ryzom/client/src/item_group_manager.cpp b/code/ryzom/client/src/item_group_manager.cpp index bd94f4231..3cc45f5f9 100644 --- a/code/ryzom/client/src/item_group_manager.cpp +++ b/code/ryzom/client/src/item_group_manager.cpp @@ -73,6 +73,21 @@ bool CItemGroup::contains(CDBCtrlSheet *other, SLOT_EQUIPMENT::TSlotEquipment &s void CItemGroup::addItem(sint32 createTime, sint32 serial, SLOT_EQUIPMENT::TSlotEquipment slot) { + //Don't add an item if it already exists, this could cause issue + // It's happening either if we are creating a group with a 2 hands items (and the item is found both in handR and handL) + // Or if an user incorrectly edit his group file + for(int i=0; i::max()); - - Items.push_back(item); + if(item.createTime != 0) + { + addItem(item.createTime, item.serial, item.slot); + } + // Old load : keep for compatibility / migration reasons + else + { + Items.push_back(item); + } } if (strcmp((char*)curNode->name, "remove") == 0) {