From 3aaf7db3d4839d5fc6261bd7b8f57b09c11f899b Mon Sep 17 00:00:00 2001 From: Sveinung Kvilhaugsvik Date: Wed, 24 Mar 2021 03:25:41 +0100 Subject: [PATCH] Use NULL rather than FALSE. Assertions in action_enabler_suggest_repair_oblig() returns FALSE rather than NULL. It is supposed to return a repair suggestion. See osdn #41850 --- common/actions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/actions.c b/common/actions.c index d63333d5de..6441ef474b 100644 --- a/common/actions.c +++ b/common/actions.c @@ -2561,11 +2561,11 @@ action_enabler_suggest_repair_oblig(const struct action_enabler *enabler) /* Sanity check: a non existing action enabler is missing but it doesn't * miss any obligatory hard requirements. */ - fc_assert_ret_val(enabler, FALSE); + fc_assert_ret_val(enabler, NULL); /* Sanity check: a non existing action doesn't have any obligatory hard * requirements. */ - fc_assert_ret_val(action_id_exists(enabler->action), FALSE); + fc_assert_ret_val(action_id_exists(enabler->action), NULL); paction = action_by_number(enabler->action); if (paction->result != ACTRES_NONE) { -- 2.20.1