Correct pushEvent (how difficult can it be???)

This commit is contained in:
simon.kagstrom 2009-12-05 09:36:24 +00:00
parent ab534595f0
commit db774b9856

View File

@ -265,7 +265,8 @@ void Gui::pushEvent(SDL_Event *ev)
{ {
GuiView *cur_view = this->peekView(); GuiView *cur_view = this->peekView();
if (this->is_active || !cur_view) if (!this->is_active || !cur_view)
return;
cur_view->pushEvent(ev); cur_view->pushEvent(ev);
} }