Fix unchecked dynamic_cast
This commit is contained in:
parent
b7c11c7c90
commit
11a7aad0ee
|
@ -263,6 +263,8 @@ void FMenuItem::createDialogList (FMenu* winmenu)
|
|||
if ( (*iter)->isDialog() )
|
||||
{
|
||||
FDialog* win = dynamic_cast<FDialog*>(*iter);
|
||||
if ( win )
|
||||
{
|
||||
FString win_title = win->getText();
|
||||
FMenuItem* win_item = new FMenuItem (win_title, winmenu);
|
||||
win_item->addCallback
|
||||
|
@ -273,6 +275,7 @@ void FMenuItem::createDialogList (FMenu* winmenu)
|
|||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
while ( iter != begin );
|
||||
}
|
||||
winmenu->menu_dimension();
|
||||
|
|
Loading…
Reference in New Issue