Fixed: Possible crash from null pointer
--HG-- branch : develop
This commit is contained in:
parent
ccb2cbfa78
commit
23fa3d7460
1 changed files with 1 additions and 1 deletions
|
@ -346,7 +346,7 @@ void CLightCycleManager::setHour(float hour, const CWeatherManagerClient &wm, NL
|
||||||
|
|
||||||
|
|
||||||
// Set the Sun color only if not indoor
|
// 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));
|
Scene->setSunAmbient(CRGBA(150, 150, 150, 255));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue