summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2015-04-26 11:43:58 +0000
committerfrosch <frosch@openttd.org>2015-04-26 11:43:58 +0000
commit046cb6140fe9e1bbbd2f24746637e7089a215a13 (patch)
tree789d0bd3b0a96e510f299018784285e4667603af
parent2639b843168b35819d532426682fbe05ba9f9865 (diff)
downloadopenttd-046cb6140fe9e1bbbd2f24746637e7089a215a13.tar.xz
(svn r27256) -Change [FS#6165]: Do not consider cargo that is already being loaded as waiting cargo wrt. the station rating.
-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 1c66e051f..1a641113a 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -3278,7 +3278,7 @@ static void UpdateStationRating(Station *st)
bool skip = false;
int rating = 0;
- uint waiting = ge->cargo.TotalCount();
+ uint waiting = ge->cargo.AvailableCount();
/* num_dests is at least 1 if there is any cargo as
* INVALID_STATION is also a destination.