Fix compilation

--HG--
branch : item_group
hg/compatibility-develop
Guillaume Dupuy 8 years ago
parent 8880c37fb2
commit d4b2e64c21

@ -429,8 +429,7 @@ CItemGroup* CItemGroupManager::findGroup(std::string name)
{ {
for(int i=0;i<_Groups.size();i++) for(int i=0;i<_Groups.size();i++)
{ {
CItemGroup group = _Groups[i]; if (_Groups[i].name == name) return &_Groups[i];
if (group.name == name) return &group;
} }
return NULL; return NULL;
} }

Loading…
Cancel
Save