diff options
author | Mitchell Stokes <mogurijin@gmail.com> | 2014-02-04 22:54:09 +0400 |
---|---|---|
committer | Mitchell Stokes <mogurijin@gmail.com> | 2014-02-05 02:48:22 +0400 |
commit | 88843caaa3dd95e887f43f4c66ff7e47c6d31d66 (patch) | |
tree | 559f9e9ea5fb0ad7ff41cbd0777fb458d1374827 /source/gameengine | |
parent | 502f9312d8c797d93d6084e17216013da8cc956a (diff) |
BGE: Fixing memory corruption/double free when duplicating (e.g., addObject) LibLoaded lights.
Diffstat (limited to 'source/gameengine')
-rw-r--r-- | source/gameengine/Ketsji/KX_Light.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/gameengine/Ketsji/KX_Light.cpp b/source/gameengine/Ketsji/KX_Light.cpp index 3a8821e8a86..20db6d2dd37 100644 --- a/source/gameengine/Ketsji/KX_Light.cpp +++ b/source/gameengine/Ketsji/KX_Light.cpp @@ -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; } |