Fixed: Possible crash from null pointer

--HG--
branch : develop
This commit is contained in:
Nimetu 2018-03-13 20:41:49 +02:00
parent ccb2cbfa78
commit 23fa3d7460

View file

@ -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));
}