(svn r25008) -Codechange: Make CargoList::Truncate behave similarly to CargoList::MoveTo, i.e. pass the amount to truncate (fonsinchen)

This commit is contained in:
rubidium
2013-02-17 14:10:15 +00:00
parent b374d39548
commit 84ca041564
8 changed files with 22 additions and 12 deletions

View File

@@ -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);
}
}