mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Fix failing tests - regression from some time ago?
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
#include "../lib/int3.h"
|
||||
#include "../lib/CRandomGenerator.h"
|
||||
#include "../lib/GameLibrary.h"
|
||||
#include "../lib/callback/EditorCallback.h"
|
||||
|
||||
|
||||
TEST(MapManager, DrawTerrain_Type)
|
||||
@@ -114,8 +115,9 @@ TEST(MapManager, DrawTerrain_View)
|
||||
const ResourcePath testMap("test/TerrainViewTest", EResType::MAP);
|
||||
// Load maps and json config
|
||||
CMapService mapService;
|
||||
const auto originalMap = mapService.loadMap(testMap, nullptr);
|
||||
auto map = mapService.loadMap(testMap, nullptr);
|
||||
EditorCallback cb(nullptr);
|
||||
const auto originalMap = mapService.loadMap(testMap, &cb);
|
||||
auto map = mapService.loadMap(testMap, &cb);
|
||||
|
||||
// Validate edit manager
|
||||
auto editManager = map->getEditManager();
|
||||
|
||||
Reference in New Issue
Block a user