Skip to content

Commit

Permalink
Don't use uninitialized data member for variable initialization.
Browse files Browse the repository at this point in the history
Fixes an MSVC warning. Spotted by Anonymissimus.
  • Loading branch information
lipk authored and anonymissimus committed Mar 15, 2014
1 parent 7e5dae1 commit 89fe64e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/about.cpp
Expand Up @@ -285,7 +285,7 @@ void show_about(display &disp, const std::string &campaign)
// Initially redraw all
bool redraw_mapimage = true;
bool update_dimensions = true;
int max_text_width = text_rect.w;
int max_text_width = 0;

do {
last_escape = key[SDLK_ESCAPE] != 0;
Expand Down

0 comments on commit 89fe64e

Please sign in to comment.