(svn r25008) -Codechange: Make CargoList::Truncate behave similarly to CargoList::MoveTo, i.e. pass the amount to truncate (fonsinchen)
This commit is contained in:
@@ -111,7 +111,7 @@ void CheckCargoCapacity(Vehicle *v)
|
||||
}
|
||||
|
||||
/* Any left-overs will be thrown away, but not their feeder share. */
|
||||
src->cargo.Truncate(src->cargo_cap);
|
||||
if (src->cargo_cap < src->cargo.Count()) src->cargo.Truncate(src->cargo.Count() - src->cargo_cap);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user