summaryrefslogtreecommitdiffstats
path: root/hack
diff options
context:
space:
mode:
authormrg <mrg@NetBSD.org>2019-02-04 03:33:15 +0000
committermrg <mrg@NetBSD.org>2019-02-04 03:33:15 +0000
commit2f8d2b7cde6122b350f19b5e530831f6d876ccff (patch)
tree437fb2ae0140e3c893582167461a1e68773e2887 /hack
parentb1ed8d449b26da0d4179acd3ebea3e4b021477cd (diff)
downloadbsdgames-darwin-2f8d2b7cde6122b350f19b5e530831f6d876ccff.tar.gz
bsdgames-darwin-2f8d2b7cde6122b350f19b5e530831f6d876ccff.tar.zst
bsdgames-darwin-2f8d2b7cde6122b350f19b5e530831f6d876ccff.zip
- done() can return in wizard mode. don't NOTREACHED'd it
but break instead.
Diffstat (limited to 'hack')
-rw-r--r--hack/hack.eat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hack/hack.eat.c b/hack/hack.eat.c
index a6c404e7..6107f993 100644
--- a/hack/hack.eat.c
+++ b/hack/hack.eat.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hack.eat.c,v 1.12 2011/08/07 06:03:45 dholland Exp $ */
+/* $NetBSD: hack.eat.c,v 1.13 2019/02/04 03:33:15 mrg Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -63,7 +63,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hack.eat.c,v 1.12 2011/08/07 06:03:45 dholland Exp $");
+__RCSID("$NetBSD: hack.eat.c,v 1.13 2019/02/04 03:33:15 mrg Exp $");
#endif /* not lint */
#include "hack.h"
@@ -539,7 +539,7 @@ eatcorpse(struct obj *otmp)
pline("You turn to stone.");
killer = "dead cockatrice";
done("died");
- /* NOTREACHED */
+ break;
case 'a':
if (Stoned) {
pline("What a pity - you just destroyed a future piece of art!");