summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/files.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/files.cc b/src/files.cc
index f91b51a8..e0990984 100644
--- a/src/files.cc
+++ b/src/files.cc
@@ -5157,6 +5157,8 @@ static errr top_twenty(void)
/* Clear the record */
+ static_assert(std::is_pod<high_score>::value,
+ "Cannot memset a non-POD type");
memset(&the_score, 0, sizeof(high_score));
/* Save the version */