summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2016-06-20 22:49:05 +0200
committerBardur Arantsson <bardur@scientician.net>2016-06-20 22:49:05 +0200
commit3db678db7315e6c188a5eb192198385a9971e803 (patch)
tree6d914d11cac84aaa61d9273472fe2db348fa9a05 /src
parent145ea9e004c6014c790abb8d7b81f7f1547af3b9 (diff)
Fix a bad 'nullptr' check
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 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);
}