From b7b5f002a636154033166a2c828765386c14e5a5 Mon Sep 17 00:00:00 2001 From: erihel Date: Sat, 30 Mar 2013 16:03:25 +0100 Subject: * Removed warning while compiling brain.cpp * Fix for issue #130 * Fix for issue #128 with wrong sound pitch --- src/object/brain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/object/brain.cpp') diff --git a/src/object/brain.cpp b/src/object/brain.cpp index fa3e425..951a763 100644 --- a/src/object/brain.cpp +++ b/src/object/brain.cpp @@ -2056,7 +2056,7 @@ void CBrain::UpdateInterface(float rTime) pc->SetState(Ui::STATE_VISIBLE, m_main->GetShowMap()); } - pb = (Ui::CButton*)pw->SearchControl(EVENT_OBJECT_REC); + pb = static_cast(pw->SearchControl(EVENT_OBJECT_REC)); if ( pb != 0 ) { if ( m_bTraceRecord && Math::Mod(m_time, 0.4f) >= 0.2f ) -- cgit v1.2.3-1-g7c22