summaryrefslogtreecommitdiff
path: root/src/init2.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2014-06-26 20:25:07 +0200
committerBardur Arantsson <bardur@scientician.net>2014-06-26 20:45:28 +0200
commit63e481780855d2d6469840d9ba853d91c6bb8c28 (patch)
treecc2058d41ea5fb6d6595d186183d7951b570e1ac /src/init2.cc
parent442d21a78026ec83de4495a78d8e36aa39fa95b6 (diff)
Replace usages of WIPE/C_WIPE with memset()
Diffstat (limited to 'src/init2.cc')
-rw-r--r--src/init2.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/init2.cc b/src/init2.cc
index c8da918d..b809910e 100644
--- a/src/init2.cc
+++ b/src/init2.cc
@@ -1913,10 +1913,10 @@ static errr init_alloc(void)
/*** Analyze object allocation info ***/
/* Clear the "aux" array */
- C_WIPE(&aux, MAX_DEPTH_MONSTER, s16b);
+ memset(aux, 0, MAX_DEPTH_MONSTER * sizeof(s16b));
/* Clear the "num" array */
- C_WIPE(&num, MAX_DEPTH_MONSTER, s16b);
+ memset(num, 0, MAX_DEPTH_MONSTER * sizeof(s16b));
/* Size of "alloc_kind_table" */
alloc_kind_size = 0;
@@ -2002,10 +2002,10 @@ static errr init_alloc(void)
/*** Analyze monster allocation info ***/
/* Clear the "aux" array */
- C_WIPE(&aux, MAX_DEPTH_MONSTER, s16b);
+ memset(aux, 0, MAX_DEPTH_MONSTER * sizeof(s16b));
/* Clear the "num" array */
- C_WIPE(&num, MAX_DEPTH_MONSTER, s16b);
+ memset(num, 0, MAX_DEPTH_MONSTER * sizeof(s16b));
/* Size of "alloc_race_table" */
alloc_race_size = 0;