diff --git a/changelog b/changelog index e5fd2940a28..a9fe906b116 100644 --- a/changelog +++ b/changelog @@ -8,6 +8,7 @@ Version 1.13.3+dev: * Miscellaneous and bug fixes: * Fix non-deterministic crashes in the Attack Unit dialog resulting from invalid memory references (regression introduced in 1.13.3). + * Fix uninitialized variable in event handling code (bug #24498). Version 1.13.3: * Greatly improved SDL 2 support. SDL 2 is now used by default build when diff --git a/src/events.cpp b/src/events.cpp index a722cc1dec4..01cb4bf017b 100644 --- a/src/events.cpp +++ b/src/events.cpp @@ -171,11 +171,12 @@ event_context::~event_context() event_contexts.pop_back(); } - sdl_handler::sdl_handler(const bool auto_join) : +sdl_handler::sdl_handler(const bool auto_join) : #if !SDL_VERSION_ATLEAST(2, 0, 0) unicode_(SDL_EnableUNICODE(1)), #endif - has_joined_(false) + has_joined_(false), + has_joined_global_(false) { #if !SDL_VERSION_ATLEAST(2, 0, 0)