From 2745aca264c15837051762b1c8e734b152519fdb 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 2fa27f0d24..ba4687f0f6 100644 --- a/common/actions.c +++ b/common/actions.c @@ -1371,11 +1371,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); obligatory_req_vector_iterate(&obligatory_hard_reqs[enabler->action], -- 2.20.1