mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-18 17:40:48 +02:00
Fix crash in rmg
This commit is contained in:
parent
f0f0a1567d
commit
8903d2edaf
@ -46,7 +46,7 @@ void TownPlacer::init()
|
||||
|
||||
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
|
||||
logGlobal->info("Preparing playing zone");
|
||||
|
Loading…
Reference in New Issue
Block a user