This commit is contained in:
Reece Wilson 2021-07-13 13:16:40 +01:00
parent de25b0a0f5
commit 7a838d4a51

View File

@ -81,7 +81,7 @@ namespace Aurora::RNG
template<typename T>
static inline T &RngArray(T *items, AuUInt count)
{
return items[static_cast<int>(std::floor(static_cast<float>(RngByte()) / 255.f * static_cast<float>(count - 1))];
return items[static_cast<int>(std::floor(static_cast<float>(RngByte()) / 255.f * static_cast<float>(count - 1)))];
}
template<typename T>