mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
Fix crash in rmg
This commit is contained in:
parent
f7bf1ad467
commit
cf9314507b
@ -46,7 +46,7 @@ void TownPlacer::init()
|
|||||||
|
|
||||||
void TownPlacer::placeTowns(ObjectManager & manager)
|
void TownPlacer::placeTowns(ObjectManager & manager)
|
||||||
{
|
{
|
||||||
if((zone.getType() == ETemplateZoneType::CPU_START) || (zone.getType() == ETemplateZoneType::PLAYER_START))
|
if(zone.getOwner() && ((zone.getType() == ETemplateZoneType::CPU_START) || (zone.getType() == ETemplateZoneType::PLAYER_START)))
|
||||||
{
|
{
|
||||||
//set zone types to player faction, generate main town
|
//set zone types to player faction, generate main town
|
||||||
logGlobal->info("Preparing playing zone");
|
logGlobal->info("Preparing playing zone");
|
||||||
|
Loading…
Reference in New Issue
Block a user