From 23fa3d746057c3e97b727334797dfa2265578ccc Mon Sep 17 00:00:00 2001 From: Nimetu Date: Tue, 13 Mar 2018 20:41:49 +0200 Subject: [PATCH] Fixed: Possible crash from null pointer --HG-- branch : develop --- code/ryzom/client/src/light_cycle_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); }