diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp --- a/src/saveload/afterload.cpp +++ b/src/saveload/afterload.cpp @@ -3029,13 +3029,13 @@ bool AfterLoadGame() /* Make sure added industry cargo slots are cleared */ for (Industry *i : Industry::Iterate()) { for (auto it = std::begin(i->produced) + 2; it != std::end(i->produced); ++it) { - it->cargo = CT_INVALID; + it->cargo = INVALID_CARGO; it->waiting = 0; it->rate = 0; it->history = {}; } for (auto it = std::begin(i->accepted) + 3; it != std::end(i->accepted); ++it) { - it->cargo = CT_INVALID; + it->cargo = INVALID_CARGO; it->waiting = 0; } /* Make sure last_cargo_accepted_at is copied to elements for every valid input cargo.