summaryrefslogtreecommitdiff
path: root/src/station_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-02-17 14:10:15 +0000
committerrubidium <rubidium@openttd.org>2013-02-17 14:10:15 +0000
commit2795ed5b091fa5580976547b3669bac78cd595ce (patch)
tree9b0d3c0b5444157729363fc0323b6a2236e53d49 /src/station_cmd.cpp
parent6647cb917963c4e0d6d633b7a92af78167050893 (diff)
downloadopenttd-2795ed5b091fa5580976547b3669bac78cd595ce.tar.xz
(svn r25008) -Codechange: Make CargoList::Truncate behave similarly to CargoList::MoveTo, i.e. pass the amount to truncate (fonsinchen)
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 dc898d9bc..128528672 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -3307,7 +3307,7 @@ static void UpdateStationRating(Station *st)
waiting_changed = true;
}
- if (waiting_changed) ge->cargo.Truncate(waiting);
+ if (waiting_changed) ge->cargo.Truncate(ge->cargo.Count() - waiting);
}
}
}