1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-02-03 18:08:14 +01:00

Fix 5664b1e2f6: Upgrade button in NewGRF window no longer worked. (#14315)

This commit is contained in:
Peter Nelson
2025-05-31 09:20:55 +01:00
committed by GitHub
parent 621c031307
commit 4ab48f34f5

View File

@@ -708,7 +708,7 @@ struct NewGRFWindow : public Window, NewGRFScanCallback {
auto c = std::ranges::find_if(this->actives, [&iter](const auto &grfconfig) { return grfconfig.get() == iter->second; });
assert(c != std::end(this->actives));
auto d = std::make_unique<GRFConfig>(*iter->second);
auto d = std::make_unique<GRFConfig>(*a);
if (d->IsCompatible((*c)->version)) {
d->CopyParams(**c);
} else {