Skip to content

Commit

Permalink
fix segfault during loadingscreen.
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgtdf committed Mar 30, 2016
1 parent 3df0405 commit e6c58dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/display.cpp
Expand Up @@ -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>

Expand Down Expand Up @@ -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();
}
Expand Down

0 comments on commit e6c58dc

Please sign in to comment.