From 702b1b566bdf4992ee5fe893c0221e97b2ae370c Mon Sep 17 00:00:00 2001 From: nordsoft Date: Fri, 9 Sep 2022 03:38:30 +0400 Subject: [PATCH] Fix dwellings initialization --- mapeditor/inspector.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mapeditor/inspector.cpp b/mapeditor/inspector.cpp index 097b2f13b..07912aeeb 100644 --- a/mapeditor/inspector.cpp +++ b/mapeditor/inspector.cpp @@ -49,6 +49,14 @@ void Initializer::initialize(CGDwelling * o) if(!o) return; o->tempOwner = PlayerColor::NEUTRAL; + + switch(o->ID) + { + case Obj::RANDOM_DWELLING: + case Obj::RANDOM_DWELLING_LVL: + case Obj::RANDOM_DWELLING_FACTION: + o->initRandomObjectInfo(); + } } void Initializer::initialize(CGGarrison * o)