Commit 72e38c41 authored by hybrid's avatar hybrid

Fix vector3d with int elements.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2160 dfc29bdd-3216-0410-991c-e03cc46cb475
parent f7480765
......@@ -146,7 +146,7 @@ namespace core
return *this;
length = core::reciprocal_squareroot ( (f32)length );
#else
const T length = core::reciprocal_squareroot ( (X*X + Y*Y + Z*Z) );
const f32 length = core::reciprocal_squareroot ( (f32)(X*X + Y*Y + Z*Z) );
#endif
X = (T)(X * length);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment