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:
commit
3290ae19b0
@ -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