diff options
author | madmaxoft <github@xoft.cz> | 2014-05-03 19:34:46 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-05-03 19:34:46 +0200 |
commit | ee79bd10c2b6e38ca5bc850d6fd06a1b22170619 (patch) | |
tree | 8caeabc53c7506b71f9329bf796547ab7a51e5df /src | |
parent | Attempted fix for CLang warnings in Vector3.h. (diff) | |
download | cuberite-ee79bd10c2b6e38ca5bc850d6fd06a1b22170619.tar cuberite-ee79bd10c2b6e38ca5bc850d6fd06a1b22170619.tar.gz cuberite-ee79bd10c2b6e38ca5bc850d6fd06a1b22170619.tar.bz2 cuberite-ee79bd10c2b6e38ca5bc850d6fd06a1b22170619.tar.lz cuberite-ee79bd10c2b6e38ca5bc850d6fd06a1b22170619.tar.xz cuberite-ee79bd10c2b6e38ca5bc850d6fd06a1b22170619.tar.zst cuberite-ee79bd10c2b6e38ca5bc850d6fd06a1b22170619.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Vector3.h | 10 |
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; |