From: Pasi Kallinen Date: Sat, 22 Jan 2022 14:04:02 +0000 (+0200) Subject: Replace a return value with ECMD define X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=738a2250116a69eabef66aa4fc7a0d3005a1ac27;p=nethack Replace a return value with ECMD define --- diff --git a/src/cmd.c b/src/cmd.c index ba8fd773c..4eef6a2f7 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -385,7 +385,7 @@ doextcmd(void) func = extcmdlist[idx].ef_funct; if (!can_do_extcmd(&extcmdlist[idx])) - return 0; + return ECMD_OK; if (iflags.menu_requested && !accept_menu_prefix(&extcmdlist[idx])) { pline("'%s' prefix has no effect for the %s command.", visctrl(cmd_from_func(do_reqmenu)),