Skip to content

Commit

Permalink
Add member variable to initializer list (bug #24498)
Browse files Browse the repository at this point in the history
  • Loading branch information
irydacea committed Mar 6, 2016
1 parent 4329adf commit 3159f73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions src/events.cpp
Expand Up @@ -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)
Expand Down

0 comments on commit 3159f73

Please sign in to comment.