From 475ae058e31579a6304c89ccc66cb0a07b6435c5 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 4 Oct 2016 19:18:14 +0200 Subject: FULLPIPE: Fix crash on reentering scene27. The scene destructor will take care of the allocated bats. --- engines/fullpipe/scenes/scene27.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/engines/fullpipe/scenes/scene27.cpp b/engines/fullpipe/scenes/scene27.cpp index 17bf3916de..a6ddbab5e3 100644 --- a/engines/fullpipe/scenes/scene27.cpp +++ b/engines/fullpipe/scenes/scene27.cpp @@ -53,9 +53,6 @@ void scene27_initScene(Scene *sc) { g_vars->scene27_maid = sc->getStaticANIObject1ById(ANI_MAID, -1); g_vars->scene27_batHandler = sc->getStaticANIObject1ById(ANI_BITAHANDLER, -1); - for (uint i = 0; i < g_vars->scene27_balls.size(); i++) - delete g_vars->scene27_balls[i]; - g_vars->scene27_balls.clear(); g_vars->scene27_bats.clear(); g_vars->scene27_var07.clear(); -- cgit v1.2.3