1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-09-16 09:26:28 +02:00

Minor optimization.

This commit is contained in:
DjWarmonger
2015-08-31 10:08:50 +02:00
parent afe65d1264
commit fe2a72f543

View File

@@ -539,8 +539,7 @@ SectorMap& FuzzyHelper::getCachedSectorMap(HeroPtr h)
return it->second;
else
{
cachedSectorMaps[h] = SectorMap(h);
cachedSectorMaps.insert (std::make_pair(h, SectorMap(h)));
return cachedSectorMaps[h];
}
return cachedSectorMaps[h];
}