Codechange: rename CargoID to CargoType and amend related variables/comments

This commit is contained in:
Rubidium
2025-01-22 18:08:59 +01:00
committed by rubidium42
parent d05cc2ef92
commit e894a5880c
129 changed files with 1009 additions and 1009 deletions

View File

@@ -3081,7 +3081,7 @@ bool AfterLoadGame()
/* Make sure last_cargo_accepted_at is copied to elements for every valid input cargo.
* The loading routine should put the original singular value into the first array element. */
for (auto &a : i->accepted) {
if (IsValidCargoID(a.cargo)) {
if (IsValidCargoType(a.cargo)) {
a.last_accepted = i->GetAccepted(0).last_accepted;
} else {
a.last_accepted = EconomyTime::MIN_DATE;