mirror of
https://github.com/vcmi/vcmi.git
synced 2025-09-16 09:26:28 +02:00
Minor optimization.
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
Reference in New Issue
Block a user