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-13 22:20:55 +00:00
committed by GitHub
parent 7b88c518cf
commit 341ab30c4a
+1 -1
View File
@@ -1139,7 +1139,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;
}