summaryrefslogtreecommitdiff
path: root/src/util.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2015-02-23 09:11:57 +0100
committerBardur Arantsson <bardur@scientician.net>2015-02-23 09:11:57 +0100
commitc4746c0f6d328baa429c96e54d86d2d7f97ccbcc (patch)
tree3f0b3a2f98298ab823662e0096bc7ba857793b98 /src/util.cc
parentb84ac3e1b505624e2af18a4283e7ec379c00b0dc (diff)
Remove r_name, r_text, r_head in favor of simple strings
Diffstat (limited to 'src/util.cc')
-rw-r--r--src/util.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/util.cc b/src/util.cc
index a9769d31..f4f03d0c 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -3364,7 +3364,6 @@ void strlower(char *buf)
* must exactly match (look out for commas and the like!), or else 0 is
* returned. Case doesn't matter. -GSN-
*/
-
int test_monster_name(cptr name)
{
int i;
@@ -3373,11 +3372,11 @@ int test_monster_name(cptr name)
for (i = 1; i < max_r_idx; i++)
{
monster_race *r_ptr = &r_info[i];
- cptr mon_name = r_name + r_ptr->name;
- if (iequals(name, mon_name)) return (i);
+ if (r_ptr->name && iequals(name, r_ptr->name)) return (i);
}
return (0);
}
+
int test_mego_name(cptr name)
{
int i;