fix a crash

This commit is contained in:
Seth Alves 2016-03-13 11:01:11 -07:00
parent 8d2ab50616
commit dbd548a8c7

View file

@ -141,7 +141,7 @@ void EntityTreeRenderer::update() {
// check if the texture loaded and apply it
if (!updated && (
(_pendingSkyboxTexture && (!_skyboxTexture || _skyboxTexture->isLoaded())) ||
(_pendingAmbientTexture && (!_ambientTexture && _ambientTexture->isLoaded())))) {
(_pendingAmbientTexture && (!_ambientTexture || _ambientTexture->isLoaded())))) {
applyZonePropertiesToScene(_bestZone);
}