diff options
Diffstat (limited to 'src/misc_gui.cpp')
-rw-r--r-- | src/misc_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index 56e757d91..1b71828f4 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -189,7 +189,7 @@ public: c->money = INT64_MAX; CommandCost costclear = DoCommand(tile, 0, 0, DC_NONE, CMD_LANDSCAPE_CLEAR); c->money = old_money; - if (CmdSucceeded(costclear)) { + if (costclear.Succeeded()) { Money cost = costclear.GetCost(); if (cost < 0) { cost = -cost; // Negate negative cost to a positive revenue |