summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index f1f55e310..4ec3fc919 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -2388,7 +2388,7 @@ bool AfterLoadGame()
Owner o = GetRoadOwner(t, rt);
if (IsValidPlayer(o) && !GetPlayer(o)->is_active) SetRoadOwner(t, rt, OWNER_NONE);
}
- if (GetRoadTileType(t) == ROAD_TILE_CROSSING) {
+ if (IsLevelCrossing(t)) {
Owner o = GetTileOwner(t);
if (!GetPlayer(o)->is_active) {
/* remove leftover rail piece from crossing (from very old savegames) */