mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-19 07:01:09 +00:00
- fixed: Arrays serialized as array elements may not skip their serialization if their content are all zero.
This commit is contained in:
parent
3e3e3714dc
commit
31eb2e5f10
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ public:
|
|||
template<class T>
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue