diff --git a/lib/libnx/source/NsoHeader.cpp b/lib/libnx/source/NsoHeader.cpp index 3b73113..55521ec 100644 --- a/lib/libnx/source/NsoHeader.cpp +++ b/lib/libnx/source/NsoHeader.cpp @@ -311,6 +311,7 @@ bool nx::NsoHeader::isEqual(const NsoHeader& other) const } void nx::NsoHeader::copyFrom(const NsoHeader& other) { + clear(); mModuleId = other.mModuleId; mBssSize = other.mBssSize; mTextSegmentInfo = other.mTextSegmentInfo;