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:
parent
3f2c82a664
commit
702b1b566b
@ -49,6 +49,14 @@ void Initializer::initialize(CGDwelling * o)
|
|||||||
if(!o) return;
|
if(!o) return;
|
||||||
|
|
||||||
o->tempOwner = PlayerColor::NEUTRAL;
|
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)
|
void Initializer::initialize(CGGarrison * o)
|
||||||
|
Loading…
Reference in New Issue
Block a user