mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-22 22:13:35 +02:00
Fixed typo - different type was used to select ID and subID
This commit is contained in:
parent
1acab80fdc
commit
d187309eed
@ -160,7 +160,7 @@ void CGDwelling::pickRandomObject(CRandomGenerator & rand)
|
||||
if (subID == MapObjectSubID())
|
||||
{
|
||||
logGlobal->error("Error: failed to find dwelling for %s of level %d", (*VLC->townh)[faction]->getNameTranslated(), int(level));
|
||||
ID = Obj::CREATURE_GENERATOR4;
|
||||
ID = Obj::CREATURE_GENERATOR1;
|
||||
subID = *RandomGeneratorUtil::nextItem(VLC->objtypeh->knownSubObjects(Obj::CREATURE_GENERATOR1), rand);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user