really fix warning about not initialized variable

The invalid read now was on some later line.
fixes https://gna.org/bugs/index.php?21772
Anyway better to init something incorrectly than to not init it.
This commit is contained in:
anonymissimus 2014-03-15 13:44:54 +01:00
parent 093f19ff9e
commit a52b3846f2

View file

@ -271,7 +271,7 @@ void show_about(display &disp, const std::string &campaign)
gui::dialog_frame f(video, "", gui::dialog_frame::titlescreen_style, false);
// the text area's dimensions
SDL_Rect text_rect;
SDL_Rect text_rect = { 0, 0, 0, 0 };
// we'll retain a copy to prevent SDL_blit to change its w and h
SDL_Rect text_rect_blit;