From d187309eed7c1f5521dd796a1f9c82df97077a59 Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Sat, 16 Dec 2023 13:42:48 +0200 Subject: [PATCH] Fixed typo - different type was used to select ID and subID --- lib/mapObjects/CGDwelling.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mapObjects/CGDwelling.cpp b/lib/mapObjects/CGDwelling.cpp index 4eeaad6e5..88f3578c5 100644 --- a/lib/mapObjects/CGDwelling.cpp +++ b/lib/mapObjects/CGDwelling.cpp @@ -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); }