BGE: Fixing memory corruption/double free when duplicating (e.g., addObject) LibLoaded lights.

This commit is contained in:
Mitchell Stokes 2014-02-04 10:54:09 -08:00
parent 502f9312d8
commit 88843caaa3
Notes: blender-bot 2024-01-16 18:05:25 +01:00
Referenced by issue #38515, Menu tooltip description taking over other menus
Referenced by issue #38501, blender crashes right after adding image texture to material in cycles
Referenced by issue #38503, Blender crash : sengmentation fault (core dumped)
Referenced by issue #38507, Inset Faces tool, offset even option doesn't work anymore
Referenced by issue #38496, Nurbs Circle not a perfect circle
1 changed files with 2 additions and 0 deletions

View File

@ -101,6 +101,8 @@ CValue* KX_LightObject::GetReplica()
replica->m_lightobj.m_light = replica;
m_rasterizer->AddLight(&replica->m_lightobj);
if (m_base)
m_base = NULL;
return replica;
}