mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-15 16:32:41 +01:00
(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