From 8903d2edaf985bbacaadad136c20c9c8aafba86e Mon Sep 17 00:00:00 2001 From: nordsoft Date: Mon, 5 Sep 2022 20:54:24 +0400 Subject: [PATCH] Fix crash in rmg --- lib/rmg/TownPlacer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rmg/TownPlacer.cpp b/lib/rmg/TownPlacer.cpp index 6aff7a02d..2e10423b0 100644 --- a/lib/rmg/TownPlacer.cpp +++ b/lib/rmg/TownPlacer.cpp @@ -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");