1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

Fix prison distribution

This commit is contained in:
Tomasz Zieliński 2023-06-07 15:08:50 +02:00
parent 7922d8be16
commit 3e9e6aab2b
2 changed files with 2 additions and 0 deletions

View File

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

View File

@ -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);