mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-06-28 16:09:36 +01:00
Fix 5664b1e2f6
: Upgrade button in NewGRF window no longer worked. (#14315)
This commit is contained in:
parent
621c031307
commit
4ab48f34f5
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user