1
0
Fork 0

Codechange: Use dynamic_cast with FindWindowById.

Missed from 74e09ab.
pull/12458/head
Peter Nelson 2024-04-08 21:52:50 +01:00
parent 7e28605830
commit 39a866de07
No known key found for this signature in database
GPG Key ID: 8EF8F0A467DF75ED
1 changed files with 1 additions and 1 deletions

View File

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