Преглед изворни кода

Fixed remaining tempOwner testsю

AlexVinS пре 9 година
родитељ
комит
67b03b9658
1 измењених фајлова са 4 додато и 2 уклоњено
  1. 4 2
      lib/mapObjects/CGTownInstance.cpp

+ 4 - 2
lib/mapObjects/CGTownInstance.cpp

@@ -317,13 +317,15 @@ void CGDwelling::blockingDialogAnswered(const CGHeroInstance *hero, ui32 answer)
 void CGDwelling::writeJsonOptions(JsonNode& json) const
 void CGDwelling::writeJsonOptions(JsonNode& json) const
 {
 {
 	//todo:CGDwelling::writeJsonOptions
 	//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)
 void CGDwelling::readJsonOptions(const JsonNode& json)
 {
 {
 	//todo:CGDwelling::readJsonOptions
 	//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
 int CGTownInstance::getSightRadius() const //returns sight distance