diff options
author | glx <glx@openttd.org> | 2019-01-28 23:51:34 +0100 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2019-01-28 23:43:18 +0000 |
commit | b22fbfbe3ddb1b965efdc948fe47cf9002cd3c71 (patch) | |
tree | 7d86a58709d1860f570c8fcdeeeff4a72a132424 /src/ai | |
parent | 310fa1af8863d84f9ebbe6b5ea36c21f3c4a43cf (diff) | |
download | openttd-b22fbfbe3ddb1b965efdc948fe47cf9002cd3c71.tar.xz |
Add: allow opening of one TextfileWindow per type
Diffstat (limited to 'src/ai')
-rw-r--r-- | src/ai/ai_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/ai_gui.cpp b/src/ai/ai_gui.cpp index 8dad16fab..aa56b3d83 100644 --- a/src/ai/ai_gui.cpp +++ b/src/ai/ai_gui.cpp @@ -660,7 +660,7 @@ struct ScriptTextfileWindow : public TextfileWindow { */ void ShowScriptTextfileWindow(TextfileType file_type, CompanyID slot) { - DeleteWindowByClass(WC_TEXTFILE); + DeleteWindowById(WC_TEXTFILE, file_type); new ScriptTextfileWindow(file_type, slot); } |