Fix CmdCreateGoal putting goal text into goal progress field

See: #553
This commit is contained in:
Jonathan G Rennison
2023-06-20 18:53:52 +01:00
parent 3b0e067b40
commit 203d8f020b

View File

@@ -91,9 +91,9 @@ CommandCost CmdCreateGoal(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32
g->dst = p2;
g->company = company;
if (StrEmpty(text)) {
g->progress.clear();
g->text.clear();
} else {
g->progress = text;
g->text = text;
}
g->completed = false;