mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-11 10:31:16 +00:00
Add assert for dynamic_cast (#626)
This commit is contained in:
parent
55a3ad71c6
commit
6b551b14c0
@ -80,10 +80,7 @@ MxBool MxControlPresenter::CheckButtonDown(MxS32 p_x, MxS32 p_y, MxPresenter* p_
|
||||
{
|
||||
assert(p_presenter);
|
||||
MxVideoPresenter* presenter = dynamic_cast<MxVideoPresenter*>(p_presenter);
|
||||
if (!presenter) {
|
||||
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Invalid presenter");
|
||||
return FALSE;
|
||||
}
|
||||
assert(presenter);
|
||||
|
||||
if (m_style == e_map) {
|
||||
MxStillPresenter* map = (MxStillPresenter*) m_list.front();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user