Fix cargo mask truncation in CargoMaskValueFilter and LinkRefresher::RefreshLinks

This commit is contained in:
Jonathan G Rennison
2021-11-01 22:10:03 +00:00
parent f54d69a60a
commit e1e7b67270
2 changed files with 2 additions and 2 deletions

View File

@@ -577,7 +577,7 @@ template <typename F> CargoTypes FilterCargoMask(F filter_func, CargoTypes cargo
template <typename T, typename F> T CargoMaskValueFilter(CargoTypes &cargo_mask, F filter_func)
{
CargoID first_cargo_id = FindFirstBit(cargo_mask);
CargoID first_cargo_id = FindFirstBit64(cargo_mask);
T value = filter_func(first_cargo_id);
CargoTypes other_cargo_mask = cargo_mask;
ClrBit(other_cargo_mask, first_cargo_id);