mirror of https://github.com/OpenTTD/OpenTTD
Fix: Restore Random AI slot upon stopping a randomly started AI
parent
782cbe95d6
commit
0b9c54f987
|
@ -115,6 +115,10 @@
|
|||
cur_company.Restore();
|
||||
|
||||
InvalidateWindowClassesData(WC_SCRIPT_DEBUG, -1);
|
||||
|
||||
if (AIConfig::GetConfig(company)->IsRandom()) {
|
||||
AIConfig::GetConfig(company)->Change(std::nullopt);
|
||||
}
|
||||
CloseWindowById(WC_SCRIPT_SETTINGS, company);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue