diff --git a/Fw/Types/Serializable.cpp b/Fw/Types/Serializable.cpp index 60bd3e6d92..d7c73143c3 100644 --- a/Fw/Types/Serializable.cpp +++ b/Fw/Types/Serializable.cpp @@ -622,7 +622,7 @@ namespace Fw { } // otherwise, set destination buffer to data from deserialization pointer plus size SerializeStatus stat = dest.setBuff(&this->getBuffAddr()[this->m_deserLoc],size); - if (FW_SERIALIZE_OK) { + if (stat == FW_SERIALIZE_OK) { this->m_deserLoc += size; } return stat;