summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-10-28 10:41:57 +0000
committerfrosch <frosch@openttd.org>2013-10-28 10:41:57 +0000
commit7480a00ce03e5cbedf5c1cda4ad2780d65d1f3f6 (patch)
treec58f44c979ba56a08a7ff4218d578154e2043cce
parent7fbe7895ef60c76a971da52f54075569d6320362 (diff)
downloadopenttd-7480a00ce03e5cbedf5c1cda4ad2780d65d1f3f6.tar.xz
(svn r25921) -Fix [FS#5763]: Goal and progress columns were out of sync for company specific goals, if there were no global goals.
-rw-r--r--src/goal_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/goal_gui.cpp b/src/goal_gui.cpp
index b3a42bade..e7112ba20 100644
--- a/src/goal_gui.cpp
+++ b/src/goal_gui.cpp
@@ -219,8 +219,8 @@ struct GoalListWindow : public Window {
}
}
- if (column == GC_GOAL && num == 0) {
- if (IsInsideMM(pos, 0, cap)) {
+ if (num == 0) {
+ if (column == GC_GOAL && IsInsideMM(pos, 0, cap)) {
StringID str = !global_section && this->window_number == INVALID_COMPANY ? STR_GOALS_SPECTATOR_NONE : STR_GOALS_NONE;
DrawString(x, right, y + pos * FONT_HEIGHT_NORMAL, str);
}