summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Vector3.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/Vector3.h b/src/Vector3.h
index 4a1440b32..32c26026a 100644
--- a/src/Vector3.h
+++ b/src/Vector3.h
@@ -163,7 +163,15 @@ public:
z *= a_v;
}
- template <typename T2> inline Vector3<T> & operator =(const Vector3<T2> & a_Rhs)
+ inline Vector3<T> & operator = (const Vector3<T> & a_Rhs)
+ {
+ x = a_Rhs.x;
+ y = a_Rhs.y;
+ z = a_Rhs.z;
+ return *this;
+ }
+
+ template <typename T2> inline Vector3<T> & operator = (const Vector3<T2> & a_Rhs)
{
x = (T)a_Rhs.x;
y = (T)a_Rhs.y;