(svn r10037) -Fix (r10035, r10036): silence some 'may be used uninitialized' warnings

This commit is contained in:
glx
2007-06-04 20:06:54 +00:00
parent 1a7c7d768f
commit a81fd98057
2 changed files with 2 additions and 2 deletions

View File

@@ -151,7 +151,7 @@ static void GameOptionsWndProc(Window *w, WindowEvent *e)
ShowDropDownMenu(w, _driveside_dropdown, _opt_ptr->road_side, 11, i, 0);
} return;
case 13: case 14: { /* Setup townname dropdown */
uint sel;
uint sel = 0;
for (uint i = 0; i < lengthof(_town_names) - 1; i++) {
if (_town_names[i] == STR_TOWNNAME_ORIGINAL_ENGLISH + _opt_ptr->town_name) {
sel = i;