Skip to content

Commit 60b5dc4

Browse files
committed
UPBGE: Fix scene replacement.
The commit f62dca6 introduced a remove of the replaced scene in the scene list, this call is unnecessary as EXP_ListValue::SetValue is swapping the values. The drawback of RemoveValue was to reduce the size of the container by actually erasing the item. This is fixed by not removing the scene but only replacing its pointer. Fix issue: #819.
1 parent 552bf8e commit 60b5dc4

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

source/gameengine/Ketsji/KX_KetsjiEngine.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1397,7 +1397,6 @@ void KX_KetsjiEngine::ReplaceScheduledScenes()
13971397
Scene *blScene = m_converter->GetBlenderSceneForName(newscenename);
13981398
if (blScene) {
13991399
DestructScene(scene);
1400-
m_scenes->RemoveValue(scene);
14011400

14021401
KX_Scene *tmpscene = CreateScene(blScene);
14031402
ConvertScene(tmpscene);

0 commit comments

Comments
 (0)