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