summaryrefslogtreecommitdiff
path: root/src/station_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/station_gui.cpp')
-rw-r--r--src/station_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/station_gui.cpp b/src/station_gui.cpp
index ecc7ea77c..1992a2c56 100644
--- a/src/station_gui.cpp
+++ b/src/station_gui.cpp
@@ -1947,7 +1947,7 @@ struct StationViewWindow : public Window {
break;
case WID_SV_CLOSE_AIRPORT:
- DoCommandP(0, this->window_number, 0, CMD_OPEN_CLOSE_AIRPORT);
+ DoCommandP(CMD_OPEN_CLOSE_AIRPORT, 0, this->window_number, 0);
break;
case WID_SV_TRAINS: // Show list of scheduled trains to this station
@@ -2084,7 +2084,7 @@ struct StationViewWindow : public Window {
{
if (str == nullptr) return;
- DoCommandP(0, this->window_number, 0, CMD_RENAME_STATION | CMD_MSG(STR_ERROR_CAN_T_RENAME_STATION), nullptr, str);
+ DoCommandP(CMD_RENAME_STATION | CMD_MSG(STR_ERROR_CAN_T_RENAME_STATION), 0, this->window_number, 0, str);
}
void OnResize() override