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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user