diff options
Diffstat (limited to 'src/vector.h')
-rw-r--r-- | src/vector.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vector.h b/src/vector.h index 744b235c0..2caf48418 100644 --- a/src/vector.h +++ b/src/vector.h @@ -185,8 +185,8 @@ class Vector */ Vector normalized() const { - const float l = length(); - return Vector(x / l, y / l, z / l); + const float len = length(); + return Vector(x / len, y / len, z / len); } float x, y, z; |