mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:24:00 +02:00
guard against null deref
This commit is contained in:
parent
f6e57f54b0
commit
6eb3fa251d
1 changed files with 3 additions and 1 deletions
|
@ -190,7 +190,9 @@ void EntityTreeRenderer::resetEntitiesScriptEngine() {
|
|||
|
||||
connect(_entitiesScriptEngine.data(), &ScriptEngine::entityScriptPreloadFinished, [&](const EntityItemID& entityID) {
|
||||
EntityItemPointer entity = getTree()->findEntityByID(entityID);
|
||||
entity->setScriptHasFinishedPreload(true);
|
||||
if (entity) {
|
||||
entity->setScriptHasFinishedPreload(true);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue