nordsoft 2 лет назад
Родитель
Сommit
059ccdc9bc
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      lib/mapObjects/CGTownInstance.h

+ 4 - 0
lib/mapObjects/CGTownInstance.h

@@ -89,6 +89,10 @@ public:
 		h & spells;
 		h & events;
 		h & bonusingBuildings;
+		
+		for(auto * bonusingBuilding : bonusingBuildings)
+			bonusingBuilding->town = this;
+		
 		h & town;
 		h & townAndVis;
 		BONUS_TREE_DESERIALIZATION_FIX