Minor optimization.
This commit is contained in:
1 parent
afe65d1264
commit
fe2a72f543
1 file changed
+2
-3
+2
-3
@@ -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];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user