Kaynağa Gözat

Fix prison distribution

Tomasz Zieliński 2 yıl önce
ebeveyn
işleme
3e9e6aab2b

+ 1 - 0
lib/rmg/modificators/ObjectDistributor.cpp

@@ -29,6 +29,7 @@ VCMI_LIB_NAMESPACE_BEGIN
 void ObjectDistributor::process()
 {
 	distributeLimitedObjects();
+	distributePrisons();
 	distributeSeerHuts();
 }
 

+ 1 - 0
lib/rmg/modificators/TreasurePlacer.cpp

@@ -41,6 +41,7 @@ void TreasurePlacer::process()
 
 void TreasurePlacer::init()
 {
+	maxPrisons = 0; //Should be in the constructor, but we use macro for that
 	DEPENDENCY(ObjectManager);
 	DEPENDENCY(ConnectionsPlacer);
 	POSTFUNCTION(RoadPlacer);