diff --git a/src/posix/sdl/critsec.cpp b/src/posix/sdl/critsec.cpp index b339dabcf1..8de14c8df5 100644 --- a/src/posix/sdl/critsec.cpp +++ b/src/posix/sdl/critsec.cpp @@ -11,7 +11,7 @@ class FInternalCriticalSection public: FInternalCriticalSection() { - auto CritSec = SDL_CreateMutex(); + CritSec = SDL_CreateMutex(); if (CritSec == NULL) { I_FatalError("Failed to create a critical section mutex.");