From d4b2e64c21673254d5efc366c6e4eff2511fe673 Mon Sep 17 00:00:00 2001 From: Guillaume Dupuy Date: Fri, 10 Mar 2017 11:51:36 +0100 Subject: [PATCH] Fix compilation --HG-- branch : item_group --- code/ryzom/client/src/item_group_manager.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/ryzom/client/src/item_group_manager.cpp b/code/ryzom/client/src/item_group_manager.cpp index 6653e5976..32b89d08e 100644 --- a/code/ryzom/client/src/item_group_manager.cpp +++ b/code/ryzom/client/src/item_group_manager.cpp @@ -429,8 +429,7 @@ CItemGroup* CItemGroupManager::findGroup(std::string name) { for(int i=0;i<_Groups.size();i++) { - CItemGroup group = _Groups[i]; - if (group.name == name) return &group; + if (_Groups[i].name == name) return &_Groups[i]; } return NULL; }