summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2007-12-05 16:55:33 +0000
committersmatz <smatz@openttd.org>2007-12-05 16:55:33 +0000
commit15a5a1a95bd2d4543b43a6e9e3f38be94f9abbd9 (patch)
tree33d95500bd93fe197ef8a86149bb0fe47d90f892
parentfcfd0f1c76b6a9e7c11eb8ca2adb5389462de7a2 (diff)
downloadopenttd-15a5a1a95bd2d4543b43a6e9e3f38be94f9abbd9.tar.xz
(svn r11575) -Fix [FS#1502]: widget numbers of StationViewWindow were incorrect at some places
-rw-r--r--src/station_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp
index 4960e5898..23d017019 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -662,7 +662,7 @@ static void UpdateStationAcceptance(Station *st, bool show_msg)
}
/* redraw the station view since acceptance changed */
- InvalidateWindowWidget(WC_STATION_VIEW, st->index, 4);
+ InvalidateWindowWidget(WC_STATION_VIEW, st->index, 5);
}
static void UpdateStationSignCoord(Station *st)
@@ -2535,7 +2535,7 @@ static void UpdateStationRating(Station *st)
if (waiting_changed) {
InvalidateWindow(WC_STATION_VIEW, index);
} else {
- InvalidateWindowWidget(WC_STATION_VIEW, index, 5);
+ InvalidateWindowWidget(WC_STATION_VIEW, index, 6);
}
}