summaryrefslogtreecommitdiff
path: root/src/subsidy_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/subsidy_gui.cpp')
-rw-r--r--src/subsidy_gui.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/subsidy_gui.cpp b/src/subsidy_gui.cpp
index 96008db84..53fe13647 100644
--- a/src/subsidy_gui.cpp
+++ b/src/subsidy_gui.cpp
@@ -153,8 +153,7 @@ struct SubsidyListWindow : Window {
SetupSubsidyDecodeParam(s, 1);
- PlayerID player = GetStation(s->to)->owner;
- SetDParam(3, player);
+ SetDParam(3, GetStation(s->to)->owner);
/* Displays the two connected stations */
xt = DrawStringTruncated(x + 2, y, STR_202C_FROM_TO, TC_FROMSTRING, width - 2);