]> granicus.if.org Git - nethack/commitdiff
Replace a return value with ECMD define
authorPasi Kallinen <paxed@alt.org>
Sat, 22 Jan 2022 14:04:02 +0000 (16:04 +0200)
committerPasi Kallinen <paxed@alt.org>
Sat, 22 Jan 2022 14:04:02 +0000 (16:04 +0200)
src/cmd.c

index ba8fd773c2916527cb11ec89b081a5da6e0f1679..4eef6a2f7bace92773165b6aa297e357488aa4eb 100644 (file)
--- 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)),