mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-06-26 15:09:59 +01:00
(svn r23930) -Fix [FS#4944]: [Script] Do not close the parameter window when a script starts
This commit is contained in:
parent
27e54a4e36
commit
1cf2f521ab
@ -517,11 +517,7 @@ struct AISettingsWindow : public Window {
|
||||
*/
|
||||
virtual void OnInvalidateData(int data = 0, bool gui_scope = true)
|
||||
{
|
||||
if (_game_mode == GM_NORMAL && Company::IsValidID(this->slot)) {
|
||||
delete this;
|
||||
} else {
|
||||
this->RebuildVisibleSettings();
|
||||
}
|
||||
this->RebuildVisibleSettings();
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user