fix segfault during loadingscreen.

This commit is contained in:
gfgtdf 2016-03-30 15:26:19 +02:00
parent 3df0405025
commit e6c58dcc1a

View file

@ -46,6 +46,7 @@
#include "units/drawer.hpp"
#include "whiteboard/manager.hpp"
#include "show_dialog.hpp"
#include "gui/dialogs/loadscreen.hpp"
#include <SDL_image.h>
@ -3782,6 +3783,9 @@ void display::handle_window_event(const SDL_Event& event) {
}
void display::handle_event(const SDL_Event& event) {
if (gui2::tloadscreen::displaying()) {
return;
}
if (event.type == DRAW_ALL_EVENT) {
draw();
}