diff options
Diffstat (limited to 'src/depot_cmd.cpp')
-rw-r--r-- | src/depot_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/depot_cmd.cpp b/src/depot_cmd.cpp index 77f76bd20..5101b7c2c 100644 --- a/src/depot_cmd.cpp +++ b/src/depot_cmd.cpp @@ -70,7 +70,7 @@ CommandCost CmdRenameDepot(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3 d->name = NULL; MakeDefaultName(d); } else { - d->name = strdup(text); + d->name = stredup(text); } /* Update the orders and depot */ |