From 67b03b9658c9e63b2433f4404b8f2cf2733ea6b4 Mon Sep 17 00:00:00 2001 From: AlexVinS Date: Sun, 14 Feb 2016 12:25:49 +0300 Subject: [PATCH] =?UTF-8?q?Fixed=20remaining=20tempOwner=20tests=D1=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/mapObjects/CGTownInstance.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/mapObjects/CGTownInstance.cpp b/lib/mapObjects/CGTownInstance.cpp index aba80010d..dfa3ba2f1 100644 --- a/lib/mapObjects/CGTownInstance.cpp +++ b/lib/mapObjects/CGTownInstance.cpp @@ -317,13 +317,15 @@ void CGDwelling::blockingDialogAnswered(const CGHeroInstance *hero, ui32 answer) void CGDwelling::writeJsonOptions(JsonNode& json) const { //todo:CGDwelling::writeJsonOptions - CGObjectInstance::writeOwner(json); + if(ID != Obj::WAR_MACHINE_FACTORY && ID != Obj::REFUGEE_CAMP) + CGObjectInstance::writeOwner(json); } void CGDwelling::readJsonOptions(const JsonNode& json) { //todo:CGDwelling::readJsonOptions - CGObjectInstance::readOwner(json); + if(ID != Obj::WAR_MACHINE_FACTORY && ID != Obj::REFUGEE_CAMP) + CGObjectInstance::readOwner(json); } int CGTownInstance::getSightRadius() const //returns sight distance