fix stupid crashbug when quitting from subscreen
authorMatthias Braun <matze@braunis.de>
Wed, 19 Apr 2006 12:40:26 +0000 (12:40 +0000)
committerMatthias Braun <matze@braunis.de>
Wed, 19 Apr 2006 12:40:26 +0000 (12:40 +0000)
SVN-Revision: 3367

src/mainloop.cpp

index 98c8efc..4e7199d 100644 (file)
@@ -84,6 +84,7 @@ MainLoop::quit(ScreenFade* screen_fade)
   for(std::vector<Screen*>::iterator i = screen_stack.begin();
           i != screen_stack.end(); ++i)
     delete *i;
+  screen_stack.clear();
 
   exit_screen(screen_fade);
 }