diff options
author | Bardur Arantsson <bardur@scientician.net> | 2016-06-20 22:49:05 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2016-06-20 22:49:05 +0200 |
commit | 287df870759d0fc854f76d34151a597b9f529b43 (patch) | |
tree | c8804b2c742358e67f1724109eeed6f85257bb97 /src/object2.cc | |
parent | f1af5f03ccd79006fa1536e00ac699272aebc5a0 (diff) |
Change object_type to non-POD type
Diffstat (limited to 'src/object2.cc')
-rw-r--r-- | src/object2.cc | 3 |
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(); } |