Fix issue where Vector2::normalize() did not normalize correctly

pull/183/head
Christoffer 2018-09-03 19:19:56 +02:00
parent 72d227dd1c
commit ffb087caed
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}