summaryrefslogtreecommitdiff
path: root/src/station_cmd.cpp
diff options
context:
space:
mode:
authorSamuXarick <43006711+SamuXarick@users.noreply.github.com>2019-02-21 21:23:37 +0000
committerPeterN <peter@fuzzle.org>2019-02-21 21:23:37 +0000
commit456e67ac1c52431f9b7ae4d15f8188b94b2daea6 (patch)
treed34aed778d4acfb031030d8ac0e1669bd833c244 /src/station_cmd.cpp
parent673f6753e9428a8ded6343f60c0fd74681dd5e6a (diff)
downloadopenttd-456e67ac1c52431f9b7ae4d15f8188b94b2daea6.tar.xz
Change: Owner of vehicle with exclusive transport rights may now load cargo from neutral stations (#7256)
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r--src/station_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp
index 6be22de0c..e6864d70d 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -3853,7 +3853,7 @@ uint MoveGoodsToStation(CargoID type, uint amount, SourceType source_type, Sourc
Station *st = *st_iter;
/* Is the station reserved exclusively for somebody else? */
- if (st->town->exclusive_counter > 0 && st->town->exclusivity != st->owner) continue;
+ if (st->owner != OWNER_NONE && st->town->exclusive_counter > 0 && st->town->exclusivity != st->owner) continue;
if (st->goods[type].rating == 0) continue; // Lowest possible rating, better not to give cargo anymore