1
0
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:
Ivan Savenko 2023-12-16 13:42:48 +02:00
parent 1acab80fdc
commit d187309eed

View File

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