summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/monster2.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/monster2.cc b/src/monster2.cc
index 3debb27a..4649f446 100644
--- a/src/monster2.cc
+++ b/src/monster2.cc
@@ -1252,7 +1252,7 @@ void monster_desc(char *desc, monster_type *m_ptr, int mode)
{
hallu_race = &r_info[randint(max_r_idx - 2)];
}
- while (hallu_race->flags1 & RF1_UNIQUE);
+ while ((hallu_race->flags1 & RF1_UNIQUE) && (hallu_race->name != nullptr));
strcpy(silly_name, hallu_race->name);
}