summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2016-09-17 09:58:13 +0200
committerBardur Arantsson <bardur@scientician.net>2016-09-17 09:58:13 +0200
commita0cf3530d781da75417f59ce0344df1c373c358e (patch)
tree81d94eab693c12d74c4ff4a0565d1b50312841be /src
parentd249c64b5ea5b59b475584fa1a70208b8e4a4c64 (diff)
Really fix crash bug in hallucination code
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 7c05f9f6..d363d4e1 100644
--- a/src/monster2.cc
+++ b/src/monster2.cc
@@ -1189,7 +1189,7 @@ void monster_desc(char *desc, monster_type *m_ptr, int mode)
{
hallu_race = &r_info[randint(max_r_idx - 2)];
}
- while ((hallu_race->flags & RF_UNIQUE) && (hallu_race->name == nullptr));
+ while ((!hallu_race->name) || (hallu_race->flags & RF_UNIQUE));
strcpy(silly_name, hallu_race->name);
}