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:
parent
7e7c98852d
commit
bdec7db528
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user