diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-08 18:05:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-08 18:05:46 +0300 |
commit | 467a5c03ccb5ea2d1977bd84adcab69eefb4e051 (patch) | |
tree | a43709e19c87776f2db42304b6bd7f0c13721361 /src/vector.h | |
parent | 9547e64f0f25bb9f50cac9ba9dc035fbc051d4c2 (diff) | |
download | manaplus-467a5c03ccb5ea2d1977bd84adcab69eefb4e051.tar.gz manaplus-467a5c03ccb5ea2d1977bd84adcab69eefb4e051.tar.bz2 manaplus-467a5c03ccb5ea2d1977bd84adcab69eefb4e051.tar.xz manaplus-467a5c03ccb5ea2d1977bd84adcab69eefb4e051.zip |
Add missing operator= in classes with copy constructors.
Diffstat (limited to 'src/vector.h')
-rw-r--r-- | src/vector.h | 7 |
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. */ |