diff options
author | Bardur Arantsson <bardur@scientician.net> | 2015-02-23 09:11:57 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2015-02-23 09:11:57 +0100 |
commit | cd7a3a72c4ebe5cb2113cc70359157274c11e05b (patch) | |
tree | 090584212f9403895606172a0ee61f35b1463f87 | |
parent | 5df28e4f96b9220cd3f9f5625e4f1f46ccca32c8 (diff) |
Fix off-by-one in indexing of m_allow_special[]
-rw-r--r-- | src/joke.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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; } } |