diff --git a/source/common/engine/serializer.h b/source/common/engine/serializer.h index 086e118a1..d98798f95 100644 --- a/source/common/engine/serializer.h +++ b/source/common/engine/serializer.h @@ -159,7 +159,7 @@ public: template FSerializer &Array(const char *key, T *obj, T *def, int count, bool fullcompare = false) { - if (!save_full && fullcompare && isWriting() && def != nullptr && !memcmp(obj, def, count * sizeof(T))) + if (!save_full && fullcompare && isWriting() && key != nullptr && def != nullptr && !memcmp(obj, def, count * sizeof(T))) { return *this; }