1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-17 17:32:45 +01:00

Codechange: CargoSpec::Iterate already tests cargo validity. (#13941)

This commit is contained in:
Peter Nelson
2025-04-01 18:23:26 +01:00
committed by GitHub
parent 8d0ba5649a
commit 2ae84f3c9e
3 changed files with 0 additions and 4 deletions

View File

@@ -2701,7 +2701,6 @@ static void ConDumpCargoTypes()
std::map<uint32_t, const GRFFile *> grfs;
for (const CargoSpec *spec : CargoSpec::Iterate()) {
if (!spec->IsValid()) continue;
uint32_t grfid = 0;
const GRFFile *grf = spec->grffile;
if (grf != nullptr) {