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,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)