diff options
Diffstat (limited to 'Minecraft.World/BlockReplacements.cpp')
| -rw-r--r-- | Minecraft.World/BlockReplacements.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Minecraft.World/BlockReplacements.cpp b/Minecraft.World/BlockReplacements.cpp index 7b8aee51..f60d9e2a 100644 --- a/Minecraft.World/BlockReplacements.cpp +++ b/Minecraft.World/BlockReplacements.cpp @@ -8,8 +8,8 @@ void BlockReplacements::staticCtor() { for (int i = 0; i < 256; i++) { - byte b = (byte) i; - if (b != 0 && Tile::tiles[b & 0xff] == NULL) + byte b = static_cast<byte>(i); + if (b != 0 && Tile::tiles[b & 0xff] == nullptr) { b = 0; } |
