summaryrefslogtreecommitdiff
path: root/src/network/network_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/network_gui.cpp')
-rw-r--r--src/network/network_gui.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp
index ee110152d..f840b338f 100644
--- a/src/network/network_gui.cpp
+++ b/src/network/network_gui.cpp
@@ -28,6 +28,7 @@
#include "../sortlist_type.h"
#include "../company_func.h"
#include "../core/geometry_func.hpp"
+#include "../newgrf_text.h"
#include "table/strings.h"
#include "../table/sprites.h"
@@ -811,7 +812,8 @@ public:
}
c->filename = f->filename;
- c->name = f->name;
+ CleanUpGRFText(c->name);
+ c->name = DuplicateGRFText(f->name);
c->info = f->info;
c->status = GCS_UNKNOWN;
}