mirror of https://github.com/stella-emu/stella.git
Fix bad downcast.
This commit is contained in:
parent
a0873b627b
commit
ca77a007dc
|
@ -119,7 +119,7 @@ void BrowserDialog::show(GuiObject* parent, const GUI::Font& font,
|
|||
{
|
||||
uInt32 w = 0, h = 0;
|
||||
|
||||
const auto* parentDialog = static_cast<Dialog*>(parent);
|
||||
const auto* parentDialog = dynamic_cast<Dialog*>(parent);
|
||||
if (parentDialog) {
|
||||
parentDialog->getDynamicBounds(w, h);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue