summaryrefslogtreecommitdiff
path: root/src/object2.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2016-06-20 22:49:05 +0200
committerBardur Arantsson <bardur@scientician.net>2016-06-20 22:49:05 +0200
commit287df870759d0fc854f76d34151a597b9f529b43 (patch)
treec8804b2c742358e67f1724109eeed6f85257bb97 /src/object2.cc
parentf1af5f03ccd79006fa1536e00ac699272aebc5a0 (diff)
Change object_type to non-POD type
Diffstat (limited to 'src/object2.cc')
-rw-r--r--src/object2.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/object2.cc b/src/object2.cc
index 7a4b6211..8b81efae 100644
--- a/src/object2.cc
+++ b/src/object2.cc
@@ -1814,8 +1814,7 @@ s16b lookup_kind(int tval, int sval)
void object_wipe(object_type *o_ptr)
{
/* Wipe the structure */
- static_assert(std::is_pod<object_type>::value, "object_type must be POD type for memset to work");
- memset(o_ptr, 0, sizeof(object_type));
+ *o_ptr = object_type();
}