diff options
author | Bardur Arantsson <bardur@scientician.net> | 2016-06-20 22:49:05 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2016-06-20 22:49:05 +0200 |
commit | 3db678db7315e6c188a5eb192198385a9971e803 (patch) | |
tree | 6d914d11cac84aaa61d9273472fe2db348fa9a05 /src | |
parent | 145ea9e004c6014c790abb8d7b81f7f1547af3b9 (diff) |
Fix a bad 'nullptr' check
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 bf1d3d12..2ef3cc78 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->flags & RF_UNIQUE) && (hallu_race->name == nullptr)); strcpy(silly_name, hallu_race->name); } |