Fixed warning in CBrain

master
krzys-h 2015-07-22 13:56:51 +02:00
parent 329393a65a
commit 2e606f4dcb
1 changed files with 8 additions and 4 deletions

View File

@ -254,6 +254,9 @@ bool CBrain::EventProcess(const Event &event)
}
if(event.key.slot == INPUT_SLOT_ACTION && bAlt)
{
pw = static_cast< Ui::CWindow* >(m_interface->SearchControl(EVENT_WINDOW0));
if ( pw != 0 )
{
Ui::CButton* pb = static_cast< Ui::CButton* >(pw->SearchControl(EVENT_OBJECT_PROGRUN));
if(pb != nullptr)
@ -263,6 +266,7 @@ bool CBrain::EventProcess(const Event &event)
queue->AddEvent(Event(EVENT_OBJECT_PROGRUN));
}
}
}
return false;
}