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

@@ -345,7 +345,7 @@ void LinkRefresher::RefreshLinks(const Order *cur, const Order *next, uint8 flag
}
if (cur->IsType(OT_GOTO_STATION) || cur->IsType(OT_IMPLICIT)) {
if (cur->CanLeaveWithCargo(HasBit(flags, HAS_CARGO), FindFirstBit(this->cargo_mask))) {
if (cur->CanLeaveWithCargo(HasBit(flags, HAS_CARGO), FindFirstBit64(this->cargo_mask))) {
SetBit(flags, HAS_CARGO);
this->RefreshStats(cur, next);
} else {