CR feedback

This commit is contained in:
Brad Hefta-Gaub 2015-09-15 08:04:26 -07:00
parent e92d195030
commit 70d2288407

View file

@ -778,7 +778,7 @@ void EntityTreeRenderer::entitySciptChanging(const EntityItemID& entityID, const
void EntityTreeRenderer::checkAndCallPreload(const EntityItemID& entityID, const bool reload) {
if (_tree && !_shuttingDown) {
EntityItemPointer entity = getTree()->findEntityByEntityItemID(entityID);
if (!entity->getScript().isEmpty()) {
if (entity && !entity->getScript().isEmpty()) {
_entitiesScriptEngine->loadEntityScript(entityID, entity->getScript(), reload);
}
}