summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2019-01-28 23:51:34 +0100
committerCharles Pigott <charlespigott@googlemail.com>2019-01-28 23:43:18 +0000
commitb22fbfbe3ddb1b965efdc948fe47cf9002cd3c71 (patch)
tree7d86a58709d1860f570c8fcdeeeff4a72a132424 /src/network
parent310fa1af8863d84f9ebbe6b5ea36c21f3c4a43cf (diff)
downloadopenttd-b22fbfbe3ddb1b965efdc948fe47cf9002cd3c71.tar.xz
Add: allow opening of one TextfileWindow per type
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network_content_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_content_gui.cpp b/src/network/network_content_gui.cpp
index 1df2fc82c..877dea978 100644
--- a/src/network/network_content_gui.cpp
+++ b/src/network/network_content_gui.cpp
@@ -76,7 +76,7 @@ struct ContentTextfileWindow : public TextfileWindow {
void ShowContentTextfileWindow(TextfileType file_type, const ContentInfo *ci)
{
- DeleteWindowByClass(WC_TEXTFILE);
+ DeleteWindowById(WC_TEXTFILE, file_type);
new ContentTextfileWindow(file_type, ci);
}