mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/GabsPuNs-MinecraftConsoles.git
synced 2026-07-11 03:28:36 +00:00
Use BYTE Win Typedef instead of byte typedef from Minecraft.World
This commit is contained in:
@@ -30,11 +30,11 @@ int Random::next(int bits)
|
||||
return static_cast<int>(seed >> (48 - bits));
|
||||
}
|
||||
|
||||
void Random::nextBytes(byte *bytes, unsigned int count)
|
||||
void Random::nextBytes(BYTE *bytes, unsigned int count)
|
||||
{
|
||||
for(unsigned int i = 0; i < count; i++ )
|
||||
{
|
||||
bytes[i] = static_cast<byte>(next(8));
|
||||
bytes[i] = static_cast<BYTE>(next(8));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user