diff --git a/MathLib/Vector3.h b/MathLib/Vector3.h index b2e90c43ee5ca448058e3e3a44db8e12fce2bbc4..f5985ac588fce450f85cc6d301b2a8021adb3a5a 100644 --- a/MathLib/Vector3.h +++ b/MathLib/Vector3.h @@ -85,9 +85,9 @@ public: return TemplateVector3(this->_x[0]-v[0], this->_x[1]-v[1], this->_x[2]-v[2]); } - TemplateVector3& operator+=(const MathLib::TemplatePoint<T>& pnt) + TemplateVector3& operator+=(TemplateVector3 const& v) { - for (std::size_t i(0); i < 3; i++) this->_x[i] += pnt[i]; + for (std::size_t i(0); i < 3; i++) this->_x[i] += v[i]; return *this; }