fix segfault during loadingscreen.
This commit is contained in:
parent
3df0405025
commit
e6c58dcc1a
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue