Fix src/dest

This commit is contained in:
Christian Semmler 2023-08-09 06:18:29 -04:00
parent 3b2555c428
commit c900ca1fa0

View File

@ -152,8 +152,8 @@ 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 *src = this->storage; float *dest = this->storage;
float *dest = 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++;
} }