LightManager::sgSpecialLights not initialized
by Tom Spilman · in Torque Game Engine Advanced · 10/30/2006 (8:37 pm) · 1 replies
The sgSpecialLights array in LightManager isn't initialized properly and can contain garbage at certain times during initialization. The fix is to move the constructor from the header to the source file...
LightManager::LightManager()
{
dMemset(&sgSpecialLights, 0, sizeof(sgSpecialLights)); // TOM: Clear the array.
sgInit();
}About the author
Tom is a programmer and co-owner of Sickhead Games, LLC.
Torque Owner John Kabus (BobTheCBuilder)