forked from mirror/OpenTTD
Fix 5664b1e2f6
: Upgrade button in NewGRF window no longer worked. (#14315)
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user