Browse Source

Fix thrown exception on random monster initialization

Ivan Savenko 1 year ago
parent
commit
7f732b6d0a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/mapObjects/CGCreature.cpp

+ 1 - 1
lib/mapObjects/CGCreature.cpp

@@ -221,7 +221,7 @@ void CGCreature::pickRandomObject(CRandomGenerator & rand)
 
 	try {
 		// sanity check
-		VLC->objtypeh->getHandlerFor(ID, subID);
+		VLC->objtypeh->getHandlerFor(MapObjectID::MONSTER, subID);
 	}
 	catch (const std::out_of_range & )
 	{