summaryrefslogtreecommitdiff
path: root/src/vector.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vector.h')
-rw-r--r--src/vector.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vector.h b/src/vector.h
index 9f3ca47c0..d24e91e9b 100644
--- a/src/vector.h
+++ b/src/vector.h
@@ -72,11 +72,12 @@ class Vector final
return x == 0.0F && y == 0.0F && z == 0.0F;
}
- void operator=(const Vector &v)
+ Vector &operator=(const Vector &v)
{
x = v.x;
y = v.y;
z = v.z;
+ return *this;
}
/**