From f1af5f03ccd79006fa1536e00ac699272aebc5a0 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Mon, 20 Jun 2016 22:49:05 +0200 Subject: Change player_type to non-POD type --- src/birth.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/birth.cc') diff --git a/src/birth.cc b/src/birth.cc index 188d9892..76d032f9 100644 --- a/src/birth.cc +++ b/src/birth.cc @@ -703,8 +703,7 @@ static void player_wipe(void) wipe_saved(); /* Hack -- zero the struct */ - static_assert(std::is_pod::value, "Cannot memset non-POD type"); - memset(p_ptr, 0, sizeof(player_type)); + *p_ptr = player_type(); /* Level 1 is the first level */ p_ptr->lev = 1; -- cgit v1.2.3