Fixed minor bug in NoiseBase & Vector4 (typo)

This commit is contained in:
Remi Beges 2012-06-14 09:19:45 +02:00
parent 90faf844ed
commit 5fde943d9e
2 changed files with 3 additions and 3 deletions

View File

@ -361,7 +361,7 @@ NzVector4<T> operator/(T scale, const NzVector4<T>& vec)
throw std::domain_error(ss.ToString()); throw std::domain_error(ss.ToString());
} }
return NzVector3<T>(scale / vec.x, scale / vec.y, scale / vec.z, scale / vec.w); return NzVector4<T>(scale / vec.x, scale / vec.y, scale / vec.z, scale / vec.w);
} }
#include <Nazara/Core/DebugOff.hpp> #include <Nazara/Core/DebugOff.hpp>

View File

@ -17,8 +17,8 @@ NzNoiseBase::NzNoiseBase(int seed)
SetNewSeed(seed); SetNewSeed(seed);
for(int i(0) ; i < 256 ; i++) for(int i(0) ; i < 512 ; i++)
perm[i] = i; perm[i] = i & 255;
} }