Update mxvector.h

This commit is contained in:
Christian Semmler 2023-08-09 16:24:55 -04:00 committed by GitHub
parent 161266b1d9
commit 4717c15814
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -149,11 +149,11 @@ class MxVector3Data : public MxVector3
}; };
}; };
void CopyFrom(MxVector3Data *p_other) { void CopyFrom(MxVector3Data &p_other) {
EqualsImpl(p_other->m_data); EqualsImpl(p_other.m_data);
float *dest = this->storage; float *dest = this->storage;
float *src = p_other->storage; float *src = p_other.storage;
for (size_t i = sizeof(storage) / sizeof(float); i > 0; --i) for (size_t i = sizeof(storage) / sizeof(float); i > 0; --i)
*dest++ = *src++; *dest++ = *src++;
} }