mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-16 19:19:09 +00:00
(svn r23930) -Fix [FS#4944]: [Script] Do not close the parameter window when a script starts
This commit is contained in:
@@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user