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/newgrf_gui.cpp | |
parent | 310fa1af8863d84f9ebbe6b5ea36c21f3c4a43cf (diff) | |
download | openttd-b22fbfbe3ddb1b965efdc948fe47cf9002cd3c71.tar.xz |
Add: allow opening of one TextfileWindow per type
Diffstat (limited to 'src/newgrf_gui.cpp')
-rw-r--r-- | src/newgrf_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp index 140e29657..868fad968 100644 --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -561,7 +561,7 @@ struct NewGRFTextfileWindow : public TextfileWindow { void ShowNewGRFTextfileWindow(TextfileType file_type, const GRFConfig *c) { - DeleteWindowByClass(WC_TEXTFILE); + DeleteWindowById(WC_TEXTFILE, file_type); new NewGRFTextfileWindow(file_type, c); } |