From: Matthias Braun Date: Wed, 19 Apr 2006 12:40:26 +0000 (+0000) Subject: fix stupid crashbug when quitting from subscreen X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=f056506f67cb19f8c849917342f67d5d3f34be9b;p=supertux.git fix stupid crashbug when quitting from subscreen SVN-Revision: 3367 --- diff --git a/src/mainloop.cpp b/src/mainloop.cpp index 98c8efc97..4e7199d40 100644 --- a/src/mainloop.cpp +++ b/src/mainloop.cpp @@ -84,6 +84,7 @@ MainLoop::quit(ScreenFade* screen_fade) for(std::vector::iterator i = screen_stack.begin(); i != screen_stack.end(); ++i) delete *i; + screen_stack.clear(); exit_screen(screen_fade); }