diff options
author | Bardur Arantsson <bardur@scientician.net> | 2016-09-17 09:58:13 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2016-09-17 09:58:13 +0200 |
commit | a0cf3530d781da75417f59ce0344df1c373c358e (patch) | |
tree | 81d94eab693c12d74c4ff4a0565d1b50312841be /src | |
parent | d249c64b5ea5b59b475584fa1a70208b8e4a4c64 (diff) |
Really fix crash bug in hallucination code
Diffstat (limited to 'src')
-rw-r--r-- | src/monster2.cc | 2 |
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); } |