Changed: Replace NLMISC::strupr by NLMISC::toUpper

This commit is contained in:
kervala 2015-12-17 14:36:33 +01:00
parent 7af56ceb40
commit e7fb9df922
2 changed files with 2 additions and 3 deletions

View file

@ -971,8 +971,7 @@ uint32 AISHEETS::CSheets::getGroupPropertiesIndex(const std::string &groupIndexN
if (groupIndexName.empty())
return std::numeric_limits<uint32>::max();
NLMISC::strupr(groupIndexName);
std::map<string, uint32>::iterator it = _NameToGroupIndex.find(groupIndexName);
std::map<string, uint32>::iterator it = _NameToGroupIndex.find(NLMISC::toUpper(groupIndexName));
if (it==_NameToGroupIndex.end())
{
uint32 groupIndex = (uint32)_NameToGroupIndex.size();

View file

@ -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; }