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:
@@ -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 & )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user