1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Update docs, fix sonar

This commit is contained in:
Ivan Savenko
2025-06-15 15:11:09 +03:00
parent 0fa83c0478
commit 899701a87d
7 changed files with 18 additions and 13 deletions

View File

@@ -169,7 +169,7 @@ std::unique_ptr<IMapPatcher> CMapService::getMapPatcher(std::string scenarioName
{
boost::to_lower(scenarioName);
logGlobal->debug("Request to patch map %s", scenarioName);
return std::unique_ptr<IMapPatcher>(new CMapPatcher(LIBRARY->mapFormat->mapOverrides(scenarioName)));
return std::make_unique<CMapPatcher>(LIBRARY->mapFormat->mapOverrides(scenarioName));
}
VCMI_LIB_NAMESPACE_END