1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-05 15:05:40 +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
commit 3290ae19b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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