mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-19 11:58:08 +00:00
refactor: replace NULL with nullptr across C++ codebase
Excludes vendored C libs (zlib, Miles, DirectXMath, boost, Iggy).
This commit is contained in:
@@ -7,7 +7,7 @@ byteArray BlockReplacements::replacements = byteArray(256);
|
||||
void BlockReplacements::staticCtor() {
|
||||
for (int i = 0; i < 256; i++) {
|
||||
uint8_t b = (uint8_t)i;
|
||||
if (b != 0 && Tile::tiles[b & 0xff] == NULL) {
|
||||
if (b != 0 && Tile::tiles[b & 0xff] == nullptr) {
|
||||
b = 0;
|
||||
}
|
||||
BlockReplacements::replacements[i] = b;
|
||||
|
||||
Reference in New Issue
Block a user