summaryrefslogtreecommitdiff
path: root/src/birth.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/birth.cc
parent442d21a78026ec83de4495a78d8e36aa39fa95b6 (diff)
Replace usages of WIPE/C_WIPE with memset()
Diffstat (limited to 'src/birth.cc')
-rw-r--r--src/birth.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/birth.cc b/src/birth.cc
index 8612efdc..6f93d571 100644
--- a/src/birth.cc
+++ b/src/birth.cc
@@ -808,7 +808,8 @@ static void player_wipe(void)
wipe_saved();
/* Hack -- zero the struct */
- WIPE(p_ptr, player_type);
+ static_assert(std::is_pod<player_type>::value, "Cannot memset non-POD type");
+ memset(p_ptr, 0, sizeof(player_type));
/* Level 1 is the first level */
p_ptr->lev = 1;