diff --git a/code/ryzom/client/src/light_cycle_manager.cpp b/code/ryzom/client/src/light_cycle_manager.cpp index 5ef2f52fb..eeeeb66f6 100644 --- a/code/ryzom/client/src/light_cycle_manager.cpp +++ b/code/ryzom/client/src/light_cycle_manager.cpp @@ -346,7 +346,7 @@ void CLightCycleManager::setHour(float hour, const CWeatherManagerClient &wm, NL // Set the Sun color only if not indoor - if (ContinentMngr.cur()->Indoor) + if (ContinentMngr.cur() && ContinentMngr.cur()->Indoor) { Scene->setSunAmbient(CRGBA(150, 150, 150, 255)); }