Codechange: Silence -Wclass-memaccess warnings with GCC8

This commit is contained in:
Charles Pigott
2018-05-13 18:34:57 +01:00
committed by frosch
parent e1b9187e9b
commit 5f86e1a390
9 changed files with 12 additions and 15 deletions

View File

@@ -96,7 +96,9 @@ uint ObjectSpec::Index() const
void ResetObjects()
{
/* Clean the pool. */
MemSetT(_object_specs, 0, lengthof(_object_specs));
for (uint16 i = 0; i < NUM_OBJECTS; i++) {
_object_specs[i] = {};
}
/* And add our originals. */
MemCpyT(_object_specs, _original_objects, lengthof(_original_objects));