1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

findKey returns success in found parameter

This commit is contained in:
Henning Koehler 2018-02-19 08:50:43 +13:00
parent 9850e7254e
commit 04925314f8

View File

@ -376,8 +376,14 @@ namespace vstd
for(auto iter = map.cbegin(); iter != map.cend(); iter++)
{
if(iter->second == value)
{
if(found)
*found = true;
return iter->first;
}
}
if(found)
*found = false;
return Key();
}