1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-01 23:12:49 +02:00

Fix thrown exception on random monster initialization

This commit is contained in:
Ivan Savenko
2024-04-24 22:57:13 +03:00
parent b4abb3a56c
commit 7f732b6d0a

View File

@@ -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 & )
{