summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/station.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station.cpp b/src/station.cpp
index c4ed84200..16d72e53e 100644
--- a/src/station.cpp
+++ b/src/station.cpp
@@ -188,7 +188,7 @@ void Station::MarkTilesDirty(bool cargo_change) const
bool Station::TileBelongsToRailStation(TileIndex tile) const
{
- return IsRailwayStationTile(tile) && GetStationIndex(tile) = this->index;
+ return IsRailwayStationTile(tile) && GetStationIndex(tile) == this->index;
}
/** Obtain the length of a platform