From 67daa5a319b21360cfbf17ccbfe34cf5b47c396d Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Thu, 20 May 2004 23:25:30 +0000 Subject: [PATCH] don't remove trampolines twice SVN-Revision: 1288 --- src/world.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/world.cpp b/src/world.cpp index 11bc77cbc..46ff60a1d 100644 --- a/src/world.cpp +++ b/src/world.cpp @@ -129,17 +129,10 @@ World::apply_bonuses() World::~World() { - for (Trampolines::iterator i = trampolines.begin(); i != trampolines.end(); ++i) - delete *i; - for (std::vector::iterator i = gameobjects.begin(); i != gameobjects.end(); ++i) { - Drawable* drawable = dynamic_cast (*i); - if(drawable) - displaymanager.remove_drawable(drawable); delete *i; } - bad_guys.clear(); delete level; } -- 2.11.0