diff --git a/src/posix/sdl/sdlvideo.cpp b/src/posix/sdl/sdlvideo.cpp index e85c08235..2c1beb1ee 100644 --- a/src/posix/sdl/sdlvideo.cpp +++ b/src/posix/sdl/sdlvideo.cpp @@ -555,7 +555,7 @@ ADD_STAT (blit) // each platform has its own specific version of this function. void I_SetWindowTitle(const char* caption) { - Screen = screen->GetSDLWindow(); + auto Screen = static_cast(screen)->GetSDLWindow(); if (caption) SDL_SetWindowTitle(Screen, caption); else