From cd7a3a72c4ebe5cb2113cc70359157274c11e05b Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Mon, 23 Feb 2015 09:11:57 +0100 Subject: Fix off-by-one in indexing of m_allow_special[] --- src/joke.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/joke.cc') diff --git a/src/joke.cc b/src/joke.cc index ed07dcd3..273c333a 100644 --- a/src/joke.cc +++ b/src/joke.cc @@ -24,9 +24,9 @@ bool_ gen_joke_monsters(void *data, void *in, void *out) (dun_level == 72)) { int r_idx = test_monster_name("Neil, the Sorceror"); - m_allow_special[r_idx + 1] = TRUE; + m_allow_special[r_idx] = TRUE; gen_joke_place_monster(r_idx); - m_allow_special[r_idx + 1] = FALSE; + m_allow_special[r_idx] = FALSE; } } -- cgit v1.2.3