diff --git a/LEGO1/mxvector.h b/LEGO1/mxvector.h index ab30d2f5..ae58abd9 100644 --- a/LEGO1/mxvector.h +++ b/LEGO1/mxvector.h @@ -149,11 +149,11 @@ class MxVector3Data : public MxVector3 }; }; - void CopyFrom(MxVector3Data *p_other) { - EqualsImpl(p_other->m_data); + void CopyFrom(MxVector3Data &p_other) { + EqualsImpl(p_other.m_data); 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) *dest++ = *src++; }