Codechange: Use dynamic_cast with FindWindowById. (#12458)
Missed from 74e09ab
.
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user