uninitialized variables-lighting

This commit is contained in:
AzaezelX 2020-05-11 15:07:21 -05:00
parent 9fef1b3cd1
commit f52c3d5ed2
6 changed files with 15 additions and 7 deletions

View file

@ -440,7 +440,8 @@ SceneLighting::SceneLighting(AvailableSLInterfaces* lightingInterfaces)
mStartTime = 0;
mFileName[0] = '\0';
mSceneManager = NULL;
sgTimeTemp = 0;
sgTimeTemp2 = 0;
// Registering vars more than once doesn't hurt anything.
Con::addVariable("$sceneLighting::terminateLighting", TypeBool, &gTerminateLighting);
Con::addVariable("$sceneLighting::lightingProgress", TypeF32, &gLightingProgress);
@ -1084,4 +1085,4 @@ bool SceneLighting::ObjectProxy::setPersistInfo(PersistInfo::PersistChunk * chun
{
mChunkCRC = chunk->mChunkCRC;
return(true);
}
}