if ((quest[i].type == QUEST_TYPE_KILL_LEVEL) &&
!(quest[i].flags & QUEST_FLAG_PRESET) &&
(quest[i].level == level) &&
- (quest[i].dungeon == dungeon_type))
+ (quest[i].dungeon == dungeon_idx))
return (i);
}
{
QUEST_IDX i;
- if (dungeon_type != DUNGEON_ANGBAND) return 0;
+ if (dungeon_idx != DUNGEON_ANGBAND) return 0;
for (i = MIN_RANDOM_QUEST; i < MAX_RANDOM_QUEST + 1; i++)
{