summaryrefslogtreecommitdiff
path: root/src/monster2.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2014-06-26 20:33:12 +0200
committerBardur Arantsson <bardur@scientician.net>2014-06-26 21:33:43 +0200
commitd5d256b84fb6112960a37b3944c85b6b2bcf1125 (patch)
tree47c665585587e92c06d0fe18be5d9f8a059d8340 /src/monster2.cc
parent629b9a33952661972dd533377d8da594b95c2049 (diff)
Replace COPY() macro use with assignment
There seems to be no compelling reason to use COPY() or memcpy()
Diffstat (limited to 'src/monster2.cc')
-rw-r--r--src/monster2.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/monster2.cc b/src/monster2.cc
index c91cacfd..1a63e8a8 100644
--- a/src/monster2.cc
+++ b/src/monster2.cc
@@ -242,7 +242,7 @@ monster_race* race_info_idx(int r_idx, int ego)
if (!ego) return r_ptr;
/* Copy the base monster */
- COPY(nr_ptr, r_ptr, monster_race);
+ *nr_ptr = *r_ptr;
/* Adjust the values */
for (i = 0; i < 4; i++)
@@ -610,7 +610,7 @@ static void compact_monsters_aux(int i1, int i2)
}
/* Structure copy */
- COPY(&m_list[i2], &m_list[i1], monster_type);
+ m_list[i2] = m_list[i1];
/* Wipe the hole */
memset(&m_list[i1], 0, sizeof(monster_type));