1
0
Fork 0

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

pull/14316/head
Peter Nelson 2025-05-31 09:20:55 +01:00 committed by GitHub
parent 621c031307
commit 4ab48f34f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

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 {