1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

Merge pull request #616 from nullkiller/fix-3085

[3085] - MapObjectEvaluator crashes on custom monolith
This commit is contained in:
Alexander Shishkin
2019-09-14 16:49:44 +03:00
committed by GitHub

View File

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