Add member variable to initializer list (bug #24498)

This commit is contained in:
Ignacio R. Morelle 2016-03-06 05:40:57 -03:00
parent 4329adf0ec
commit 3159f738e8
2 changed files with 4 additions and 2 deletions

View File

@ -8,6 +8,7 @@ Version 1.13.3+dev:
* Miscellaneous and bug fixes: * Miscellaneous and bug fixes:
* Fix non-deterministic crashes in the Attack Unit dialog resulting from * Fix non-deterministic crashes in the Attack Unit dialog resulting from
invalid memory references (regression introduced in 1.13.3). invalid memory references (regression introduced in 1.13.3).
* Fix uninitialized variable in event handling code (bug #24498).
Version 1.13.3: Version 1.13.3:
* Greatly improved SDL 2 support. SDL 2 is now used by default build when * Greatly improved SDL 2 support. SDL 2 is now used by default build when

View File

@ -171,11 +171,12 @@ event_context::~event_context()
event_contexts.pop_back(); 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) #if !SDL_VERSION_ATLEAST(2, 0, 0)
unicode_(SDL_EnableUNICODE(1)), unicode_(SDL_EnableUNICODE(1)),
#endif #endif
has_joined_(false) has_joined_(false),
has_joined_global_(false)
{ {
#if !SDL_VERSION_ATLEAST(2, 0, 0) #if !SDL_VERSION_ATLEAST(2, 0, 0)