1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-03 13:01:33 +02:00

[3085] - MapObjectEvaluator crashes on custom monolith

This commit is contained in:
Andrii Danylchenko 2019-09-13 10:33:06 +03:00
parent 7e7c98852d
commit bdec7db528

View File

@ -26,7 +26,7 @@ MapObjectsEvaluator::MapObjectsEvaluator()
for(auto secondaryID : VLC->objtypeh->knownSubObjects(primaryID)) for(auto secondaryID : VLC->objtypeh->knownSubObjects(primaryID))
{ {
auto handler = VLC->objtypeh->getHandlerFor(primaryID, secondaryID); auto handler = VLC->objtypeh->getHandlerFor(primaryID, secondaryID);
if(!handler->isStaticObject()) if(handler && !handler->isStaticObject())
{ {
if(handler->getAiValue() != boost::none) if(handler->getAiValue() != boost::none)
{ {