summaryrefslogtreecommitdiff
path: root/src/vector.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-08 18:05:46 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-08 18:05:46 +0300
commit467a5c03ccb5ea2d1977bd84adcab69eefb4e051 (patch)
treea43709e19c87776f2db42304b6bd7f0c13721361 /src/vector.h
parent9547e64f0f25bb9f50cac9ba9dc035fbc051d4c2 (diff)
downloadmv-467a5c03ccb5ea2d1977bd84adcab69eefb4e051.tar.gz
mv-467a5c03ccb5ea2d1977bd84adcab69eefb4e051.tar.bz2
mv-467a5c03ccb5ea2d1977bd84adcab69eefb4e051.tar.xz
mv-467a5c03ccb5ea2d1977bd84adcab69eefb4e051.zip
Add missing operator= in classes with copy constructors.
Diffstat (limited to 'src/vector.h')
-rw-r--r--src/vector.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/vector.h b/src/vector.h
index 1f998b85e..9f3ca47c0 100644
--- a/src/vector.h
+++ b/src/vector.h
@@ -72,6 +72,13 @@ class Vector final
return x == 0.0F && y == 0.0F && z == 0.0F;
}
+ void operator=(const Vector &v)
+ {
+ x = v.x;
+ y = v.y;
+ z = v.z;
+ }
+
/**
* Scale vector operator.
*/