summaryrefslogtreecommitdiff
path: root/src/autoreplace_gui.cpp
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2007-03-30 21:58:38 +0000
committerglx <glx@openttd.org>2007-03-30 21:58:38 +0000
commit94b3ea7b34d884f7963edbc475d02c9b9cec0d92 (patch)
tree132f3655ee8344094d586efb70aa45ef2133cc86 /src/autoreplace_gui.cpp
parent70a73fceabc8ca5a7ff45745f6e3bcac7a1de01e (diff)
downloadopenttd-94b3ea7b34d884f7963edbc475d02c9b9cec0d92.tar.xz
(svn r9528) -Fix r8610: don't try to modify non-existent widgets (many thanks to Bruce Perence, the libefence developer)
Diffstat (limited to 'src/autoreplace_gui.cpp')
-rw-r--r--src/autoreplace_gui.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/autoreplace_gui.cpp b/src/autoreplace_gui.cpp
index 6ef7c7d30..2915f8476 100644
--- a/src/autoreplace_gui.cpp
+++ b/src/autoreplace_gui.cpp
@@ -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;