Fix compilation

--HG--
branch : item_group
This commit is contained in:
Guillaume Dupuy 2017-03-10 11:51:36 +01:00
parent 8880c37fb2
commit d4b2e64c21

View file

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