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:
parent
093f19ff9e
commit
a52b3846f2
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue