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

Fix build

This commit is contained in:
Ivan Savenko
2024-01-10 21:30:12 +02:00
parent ea1f05d15a
commit 9af7c63a26
18 changed files with 35 additions and 32 deletions

View File

@@ -25,7 +25,7 @@ TEST(MapManager, DrawTerrain_Type)
{
try
{
auto map = std::make_unique<CMap>();
auto map = std::make_unique<CMap>(nullptr);
map->width = 52;
map->height = 52;
map->initTerrain();
@@ -114,8 +114,8 @@ TEST(MapManager, DrawTerrain_View)
const ResourcePath testMap("test/TerrainViewTest", EResType::MAP);
// Load maps and json config
CMapService mapService;
const auto originalMap = mapService.loadMap(testMap);
auto map = mapService.loadMap(testMap);
const auto originalMap = mapService.loadMap(testMap, nullptr);
auto map = mapService.loadMap(testMap, nullptr);
// Validate edit manager
auto editManager = map->getEditManager();