diff options
author | Bardur Arantsson <bardur@scientician.net> | 2014-06-26 20:25:07 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2014-06-26 20:45:28 +0200 |
commit | 63e481780855d2d6469840d9ba853d91c6bb8c28 (patch) | |
tree | cc2058d41ea5fb6d6595d186183d7951b570e1ac /src/monster2.cc | |
parent | 442d21a78026ec83de4495a78d8e36aa39fa95b6 (diff) |
Replace usages of WIPE/C_WIPE with memset()
Diffstat (limited to 'src/monster2.cc')
-rw-r--r-- | src/monster2.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/monster2.cc b/src/monster2.cc index 2f78f8b7..c91cacfd 100644 --- a/src/monster2.cc +++ b/src/monster2.cc @@ -495,7 +495,7 @@ void delete_monster_idx(int i) } /* Wipe the Monster */ - WIPE(m_ptr, monster_type); + memset(m_ptr, 0, sizeof(monster_type)); /* Count monsters */ m_cnt--; @@ -613,7 +613,7 @@ static void compact_monsters_aux(int i1, int i2) COPY(&m_list[i2], &m_list[i1], monster_type); /* Wipe the hole */ - WIPE(&m_list[i1], monster_type); + memset(&m_list[i1], 0, sizeof(monster_type)); } @@ -731,7 +731,7 @@ void wipe_m_list(void) cave[m_ptr->fy][m_ptr->fx].m_idx = 0; /* Wipe the Monster */ - WIPE(m_ptr, monster_type); + memset(m_ptr, 0, sizeof(monster_type)); } /* Reset "m_max" */ |