Преглед на файлове

Fixed typo - different type was used to select ID and subID

Ivan Savenko преди 1 година
родител
ревизия
d187309eed
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      lib/mapObjects/CGDwelling.cpp

+ 1 - 1
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);
 		}