Fixed warning in CBrain
parent
329393a65a
commit
2e606f4dcb
|
@ -254,6 +254,9 @@ bool CBrain::EventProcess(const Event &event)
|
||||||
}
|
}
|
||||||
|
|
||||||
if(event.key.slot == INPUT_SLOT_ACTION && bAlt)
|
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));
|
Ui::CButton* pb = static_cast< Ui::CButton* >(pw->SearchControl(EVENT_OBJECT_PROGRUN));
|
||||||
if(pb != nullptr)
|
if(pb != nullptr)
|
||||||
|
@ -263,6 +266,7 @@ bool CBrain::EventProcess(const Event &event)
|
||||||
queue->AddEvent(Event(EVENT_OBJECT_PROGRUN));
|
queue->AddEvent(Event(EVENT_OBJECT_PROGRUN));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue