aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2016-10-04 19:18:14 +0200
committerEugene Sandulenko2016-10-04 19:18:14 +0200
commit475ae058e31579a6304c89ccc66cb0a07b6435c5 (patch)
treec1d397f59d264644809b8fc8794dd15aaa3cf2f1
parented44ddafba1f2426fdcc2c5768b7b6f652167ef8 (diff)
downloadscummvm-rg350-475ae058e31579a6304c89ccc66cb0a07b6435c5.tar.gz
scummvm-rg350-475ae058e31579a6304c89ccc66cb0a07b6435c5.tar.bz2
scummvm-rg350-475ae058e31579a6304c89ccc66cb0a07b6435c5.zip
FULLPIPE: Fix crash on reentering scene27.
The scene destructor will take care of the allocated bats.
-rw-r--r--engines/fullpipe/scenes/scene27.cpp3
1 files changed, 0 insertions, 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();