mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Fixes for multiple new issues from Sonar
This commit is contained in:
@@ -28,7 +28,7 @@ std::shared_ptr<PathfinderConfig> PathfinderCache::createConfig(const CGHeroInst
|
||||
|
||||
std::shared_ptr<CPathsInfo> PathfinderCache::buildPaths(const CGHeroInstance * h)
|
||||
{
|
||||
std::shared_ptr<CPathsInfo> result = std::make_shared<CPathsInfo>(cb->getMapSize(), h);
|
||||
auto result = std::make_shared<CPathsInfo>(cb->getMapSize(), h);
|
||||
auto config = createConfig(h, *result);
|
||||
|
||||
cb->calculatePaths(config);
|
||||
|
||||
Reference in New Issue
Block a user