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:
* 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

View file

@ -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)