mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Fix build
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user