diff --git a/frodo_menu.cpp b/frodo_menu.cpp index 7fde3b7..d539a2e 100644 --- a/frodo_menu.cpp +++ b/frodo_menu.cpp @@ -265,8 +265,9 @@ void Gui::pushEvent(SDL_Event *ev) { GuiView *cur_view = this->peekView(); - if (this->is_active || !cur_view) - cur_view->pushEvent(ev); + if (!this->is_active || !cur_view) + return; + cur_view->pushEvent(ev); } void Gui::draw(SDL_Surface *where)