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/object2.cc | |
parent | 442d21a78026ec83de4495a78d8e36aa39fa95b6 (diff) |
Replace usages of WIPE/C_WIPE with memset()
Diffstat (limited to 'src/object2.cc')
-rw-r--r-- | src/object2.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/object2.cc b/src/object2.cc index 23d3d2b9..9f4d872e 100644 --- a/src/object2.cc +++ b/src/object2.cc @@ -534,7 +534,7 @@ void wipe_o_list(void) } /* Wipe the object */ - WIPE(o_ptr, object_type); + memset(o_ptr, 0, sizeof(object_type)); } /* Reset "o_max" */ @@ -1898,7 +1898,7 @@ s16b lookup_kind(int tval, int sval) void object_wipe(object_type *o_ptr) { /* Wipe the structure */ - WIPE(o_ptr, object_type); + memset(o_ptr, 0, sizeof(object_type)); } @@ -1920,7 +1920,7 @@ void object_prep(object_type *o_ptr, int k_idx) object_kind *k_ptr = &k_info[k_idx]; /* Clear the record */ - WIPE(o_ptr, object_type); + memset(o_ptr, 0, sizeof(object_type)); /* Save the kind index */ o_ptr->k_idx = k_idx; |