From 80581347a4ee1d40d25db17c294164d9f2392bbb Mon Sep 17 00:00:00 2001 From: kervala Date: Thu, 17 Dec 2015 14:36:33 +0100 Subject: [PATCH] Changed: Replace NLMISC::strupr by NLMISC::toUpper --HG-- branch : develop --- code/ryzom/server/src/ai_service/sheets.cpp | 3 +-- code/ryzom/server/src/ai_service/sheets.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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; }