Codechange: Use dynamic_cast with FindWindowById. (#12458)

Missed from 74e09ab.
This commit is contained in:
2024-04-08 22:32:57 +01:00
committed by GitHub
parent 7e28605830
commit 1b127628cb

View File

@@ -83,7 +83,7 @@ void ShowScreenshotWindow()
*/
void SetScreenshotWindowVisibility(bool hide)
{
ScreenshotWindow *scw = (ScreenshotWindow *)FindWindowById(WC_SCREENSHOT, 0);
ScreenshotWindow *scw = dynamic_cast<ScreenshotWindow *>(FindWindowById(WC_SCREENSHOT, 0));
if (scw == nullptr) return;