summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/town_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/town_gui.cpp b/src/town_gui.cpp
index 021590cb9..2d7aa8f20 100644
--- a/src/town_gui.cpp
+++ b/src/town_gui.cpp
@@ -1151,7 +1151,7 @@ public:
void ExecuteFoundTownCommand(TileIndex tile, bool random, StringID errstr, CommandCallback cc)
{
- const char *name = nullptr;
+ std::string name;
if (!this->townnamevalid) {
name = this->townname_editbox.text.buf;