summaryrefslogtreecommitdiff
path: root/misc_gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc_gui.c')
-rw-r--r--misc_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc_gui.c b/misc_gui.c
index 61c8c02b5..1de7e2061 100644
--- a/misc_gui.c
+++ b/misc_gui.c
@@ -59,7 +59,7 @@ static void LandInfoWndProc(Window *w, WindowEvent *e)
DrawStringCentered(140, 27, STR_01A7_OWNER, 0);
str = STR_01A4_COST_TO_CLEAR_N_A;
- if (lid->costclear != CMD_ERROR) {
+ if (!CmdFailed(lid->costclear)) {
SetDParam(0, lid->costclear);
str = STR_01A5_COST_TO_CLEAR;
}