summaryrefslogtreecommitdiff
path: root/games/hack/hack.mklev.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/hack/hack.mklev.c')
-rw-r--r--games/hack/hack.mklev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/games/hack/hack.mklev.c b/games/hack/hack.mklev.c
index 5e8c7b51f04..623bd0074d6 100644
--- a/games/hack/hack.mklev.c
+++ b/games/hack/hack.mklev.c
@@ -679,7 +679,7 @@ register struct mkroom *croom;
if(!num || num >= TRAPNUM) {
nopierc = (dlevel < 4) ? 1 : 0;
nomimic = (dlevel < 9 || goldseen ) ? 1 : 0;
- if(index(fut_geno, 'M')) nomimic = 1;
+ if(strchr(fut_geno, 'M')) nomimic = 1;
kind = rn2(TRAPNUM - nopierc - nomimic);
/* note: PIERC = 7, MIMIC = 8, TRAPNUM = 9 */
} else kind = num;