(svn r9528) -Fix r8610: don't try to modify non-existent widgets (many thanks to Bruce Perence, the libefence developer)

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
glx 17 years ago
parent 70a73fceab
commit 94b3ea7b34

@ -261,14 +261,14 @@ static void ReplaceVehicleWndProc(Window *w, WindowEvent *e)
/* set wagon/engine button */
SetDParam(2, WP(w, replaceveh_d).wagon_btnstate ? STR_ENGINES : STR_WAGONS);
}
w->widget[13].color = _player_colors[_local_player]; // sets the colour of that art thing
w->widget[16].color = _player_colors[_local_player]; // sets the colour of that art thing
/* sets the colour of that art thing */
w->widget[13].color = _player_colors[_local_player];
w->widget[16].color = _player_colors[_local_player];
}
DrawWindowWidgets(w);
if (w->window_number == VEH_TRAIN) {
/* Draw the selected railtype in the pulldown menu */
RailType railtype = _railtype_selected_in_replace_gui;

Loading…
Cancel
Save