From 2795ed5b091fa5580976547b3669bac78cd595ce Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 17 Feb 2013 14:10:15 +0000 Subject: (svn r25008) -Codechange: Make CargoList::Truncate behave similarly to CargoList::MoveTo, i.e. pass the amount to truncate (fonsinchen) --- src/station_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/station_cmd.cpp') 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); } } } -- cgit v1.2.3-70-g09d2