summaryrefslogtreecommitdiff
path: root/src/town_cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/town_cmd.cpp')
-rw-r--r--src/town_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp
index 01331a269..033d04248 100644
--- a/src/town_cmd.cpp
+++ b/src/town_cmd.cpp
@@ -2004,7 +2004,7 @@ CommandCost CmdFoundTown(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32
old_generating_world.Restore();
if (t != nullptr && !StrEmpty(text)) {
- t->name = stredup(text);
+ t->name = text;
t->UpdateVirtCoord();
}