diff --git a/code/ryzom/server/src/ai_service/sheets.cpp b/code/ryzom/server/src/ai_service/sheets.cpp index e15ca327f..56060db1e 100644 --- a/code/ryzom/server/src/ai_service/sheets.cpp +++ b/code/ryzom/server/src/ai_service/sheets.cpp @@ -971,8 +971,7 @@ uint32 AISHEETS::CSheets::getGroupPropertiesIndex(const std::string &groupIndexN if (groupIndexName.empty()) return std::numeric_limits::max(); - NLMISC::strupr(groupIndexName); - std::map::iterator it = _NameToGroupIndex.find(groupIndexName); + std::map::iterator it = _NameToGroupIndex.find(NLMISC::toUpper(groupIndexName)); if (it==_NameToGroupIndex.end()) { uint32 groupIndex = (uint32)_NameToGroupIndex.size(); diff --git a/code/ryzom/server/src/ai_service/sheets.h b/code/ryzom/server/src/ai_service/sheets.h index efa4d0c10..121f49c7a 100644 --- a/code/ryzom/server/src/ai_service/sheets.h +++ b/code/ryzom/server/src/ai_service/sheets.h @@ -703,7 +703,7 @@ public: IAIActionCPtr lookupAction (NLMISC::CSheetId const& id); IRaceStatsCPtr lookupRaceStats (NLMISC::CSheetId const& id); - uint32 getGroupPropertiesIndex(std::string groupIndexName); + uint32 getGroupPropertiesIndex(const std::string &groupIndexName); uint32 playerGroupIndex() { return _PlayerGroupIndex; }