summaryrefslogtreecommitdiff
path: root/src/goal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/goal.cpp')
-rw-r--r--src/goal.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/goal.cpp b/src/goal.cpp
index d472fc2c5..2f6ca242a 100644
--- a/src/goal.cpp
+++ b/src/goal.cpp
@@ -90,7 +90,7 @@ CommandCost CmdCreateGoal(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32
g->type = type;
g->dst = p2;
g->company = company;
- g->text = strdup(text);
+ g->text = stredup(text);
g->progress = NULL;
g->completed = false;
@@ -155,7 +155,7 @@ CommandCost CmdSetGoalText(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3
if (flags & DC_EXEC) {
Goal *g = Goal::Get(p1);
free(g->text);
- g->text = strdup(text);
+ g->text = stredup(text);
if (g->company == INVALID_COMPANY) {
InvalidateWindowClassesData(WC_GOALS_LIST);
@@ -187,7 +187,7 @@ CommandCost CmdSetGoalProgress(TileIndex tile, DoCommandFlag flags, uint32 p1, u
if (StrEmpty(text)) {
g->progress = NULL;
} else {
- g->progress = strdup(text);
+ g->progress = stredup(text);
}
if (g->company == INVALID_COMPANY) {