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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_gui.cpp b/src/station_gui.cpp
index 878a6308d..19b87c68f 100644
--- a/src/station_gui.cpp
+++ b/src/station_gui.cpp
@@ -601,7 +601,7 @@ static const WindowDesc _player_stations_desc = {
*/
void ShowPlayerStations(PlayerID player)
{
- if (!IsValidPlayer(player)) return;
+ if (!IsValidPlayerID(player)) return;
AllocateWindowDescFront<PlayerStationsWindow>(&_player_stations_desc, player);
}