mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-29 17:39:09 +00:00
Fix #9918: Reset industy last production year on scenario start
This commit is contained in:
@@ -844,6 +844,11 @@ static void OnStartScenario()
|
||||
{
|
||||
/* Reset engine pool to simplify changing engine NewGRFs in scenario editor. */
|
||||
EngineOverrideManager::ResetToCurrentNewGRFConfig();
|
||||
|
||||
/* Make sure all industries were built "this year", to avoid too early closures. (#9918) */
|
||||
for (Industry *i : Industry::Iterate()) {
|
||||
i->last_prod_year = _cur_year;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user