Minor optimization.

This commit is contained in:
DjWarmonger committed 2015-08-31 10:08:50 +02:00
1 parent afe65d1264
commit fe2a72f543
1 file changed
+2 -3
+2 -3
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];
}