summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/Vector2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/Vector2.cpp b/src/core/Vector2.cpp
index ecb7378..379af9e 100644
--- a/src/core/Vector2.cpp
+++ b/src/core/Vector2.cpp
@@ -81,7 +81,7 @@ void Vector2::normalize()
{
real_t l = x*x + y*y;
if (l != 0) {
- l = (l);
+ l = sqrt(l);
x /= l;
y /= l;
}