mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 03:03:35 +02:00
CR feedback
This commit is contained in:
parent
e92d195030
commit
70d2288407
1 changed files with 1 additions and 1 deletions
|
@ -778,7 +778,7 @@ void EntityTreeRenderer::entitySciptChanging(const EntityItemID& entityID, const
|
||||||
void EntityTreeRenderer::checkAndCallPreload(const EntityItemID& entityID, const bool reload) {
|
void EntityTreeRenderer::checkAndCallPreload(const EntityItemID& entityID, const bool reload) {
|
||||||
if (_tree && !_shuttingDown) {
|
if (_tree && !_shuttingDown) {
|
||||||
EntityItemPointer entity = getTree()->findEntityByEntityItemID(entityID);
|
EntityItemPointer entity = getTree()->findEntityByEntityItemID(entityID);
|
||||||
if (!entity->getScript().isEmpty()) {
|
if (entity && !entity->getScript().isEmpty()) {
|
||||||
_entitiesScriptEngine->loadEntityScript(entityID, entity->getScript(), reload);
|
_entitiesScriptEngine->loadEntityScript(entityID, entity->getScript(), reload);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue