summaryrefslogtreecommitdiff
path: root/src/wizard2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wizard2.c')
-rw-r--r--src/wizard2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wizard2.c b/src/wizard2.c
index 5e1e38d1..6f691171 100644
--- a/src/wizard2.c
+++ b/src/wizard2.c
@@ -1795,7 +1795,7 @@ void do_cmd_debug(void)
case 'q':
{
/* if (quest[command_arg].status == QUEST_STATUS_UNTAKEN)*/
- if ((command_arg >= 1) && (command_arg < MAX_Q_IDX_INIT) && (command_arg != QUEST_RANDOM))
+ if ((command_arg >= 1) && (command_arg < MAX_Q_IDX) && (command_arg != QUEST_RANDOM))
{
quest[command_arg].status = QUEST_STATUS_TAKEN;
*(quest[command_arg].plot) = command_arg;