diff options
-rw-r--r-- | engines/fullpipe/scenes/scene09.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/fullpipe/scenes/scene09.cpp b/engines/fullpipe/scenes/scene09.cpp index fe9051e540..209cf183b3 100644 --- a/engines/fullpipe/scenes/scene09.cpp +++ b/engines/fullpipe/scenes/scene09.cpp @@ -71,7 +71,11 @@ void scene09_initScene(Scene *sc) { g_vars->scene09_flyingBalls.clear(); + for (uint i = 0; i < g_vars->scene09_hangers.size(); i++) + delete g_vars->scene09_hangers[i]; + g_vars->scene09_hangers.clear(); + g_vars->scene09_numMovingHangers = 4; StaticANIObject *hanger = sc->getStaticANIObject1ById(ANI_VISUNCHIK, -1); @@ -102,6 +106,9 @@ void scene09_initScene(Scene *sc) { g_vars->scene09_hangers.push_back(hng); } + for (uint i = 0; i < g_vars->scene09_sceneBalls.size(); i++) + delete g_vars->scene09_sceneBalls[i]; + g_vars->scene09_sceneBalls.clear(); StaticANIObject *newball = new StaticANIObject(sc->getStaticANIObject1ById(ANI_BALL9, -1)); |