(svn r25008) -Codechange: Make CargoList::Truncate behave similarly to CargoList::MoveTo, i.e. pass the amount to truncate (fonsinchen)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user