Skip to content

Commit 2315e41

Browse files
author
L'In20Cible
committed
Fixed Vector.length property not accepting float value.
1 parent e132a9d commit 2315e41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/modules/mathlib/mathlib.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ class VectorExt
4444
return point.WithinAABox(corner1.Min(corner2), corner2.Max(corner1));
4545
}
4646

47-
static void SetLength(Vector& vec, int iLength)
47+
static void SetLength(Vector& vec, float fLength)
4848
{
4949
vec.NormalizeInPlace();
50-
vec *= iLength;
50+
vec *= fLength;
5151
}
5252

5353
static inline float GetLength(Vector& vec)

0 commit comments

Comments
 (0)