1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Fixed most of reported issues, removed unused code.

This commit is contained in:
Tomasz Zieliński
2023-10-29 21:25:39 +01:00
parent 368a185008
commit 4f2cde018c
6 changed files with 152 additions and 93 deletions

View File

@@ -46,7 +46,7 @@ TEST(MapFormat, Random)
CRmgTemplate tmpl;
std::shared_ptr<ZoneOptionsFake> zoneOptions = std::make_shared<ZoneOptionsFake>();
const_cast<CRmgTemplate::CPlayerCountRange &>(tmpl.getCpuPlayers()).addRange(1, 4);
const_cast<CRmgTemplate::CPlayerCountRange &>(tmpl.getHumanPlayers()).addRange(1, 4);
const_cast<CRmgTemplate::Zones &>(tmpl.getZones())[0] = zoneOptions;
zoneOptions->setOwner(1);