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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user