From: Matthias Braun Date: Thu, 20 May 2004 23:25:30 +0000 (+0000) Subject: don't remove trampolines twice X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=67daa5a319b21360cfbf17ccbfe34cf5b47c396d;p=supertux.git don't remove trampolines twice SVN-Revision: 1288 --- 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; }