1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-18 17:40:48 +02:00

Fix dwellings initialization

This commit is contained in:
nordsoft 2022-09-09 03:38:30 +04:00
parent 3f2c82a664
commit 702b1b566b

View File

@ -49,6 +49,14 @@ void Initializer::initialize(CGDwelling * o)
if(!o) return;
o->tempOwner = PlayerColor::NEUTRAL;
switch(o->ID)
{
case Obj::RANDOM_DWELLING:
case Obj::RANDOM_DWELLING_LVL:
case Obj::RANDOM_DWELLING_FACTION:
o->initRandomObjectInfo();
}
}
void Initializer::initialize(CGGarrison * o)