Fix #15269: crash when building drive-through stop on unowned one-way road (#15270)

Allow over-building drive-through roadstops on unowned one-way roads.
This commit is contained in:
Peter Nelson
2026-02-18 11:15:19 +00:00
committed by Peter Nelson
parent 735b3958c2
commit 613aba0667
+1 -1
View File
@@ -1140,7 +1140,7 @@ static CommandCost CheckFlatLandRoadStop(TileIndex cur_tile, int &allowed_z, con
if (rt != INVALID_ROADTYPE && RoadTypeIsRoad(rt) && !HasPowerOnRoad(rt, road_rt)) return CommandCost(STR_ERROR_NO_SUITABLE_ROAD);
if (GetDisallowedRoadDirections(cur_tile) != DRD_NONE && road_owner != OWNER_TOWN) {
if (GetDisallowedRoadDirections(cur_tile) != DRD_NONE && road_owner != OWNER_TOWN && road_owner != OWNER_NONE) {
ret = CheckOwnership(road_owner);
if (ret.Failed()) return ret;
}