mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-05 21:27:37 +00:00
refactor: replace NULL with nullptr across C++ codebase
Excludes vendored C libs (zlib, Miles, DirectXMath, boost, Iggy).
This commit is contained in:
@@ -113,8 +113,8 @@ std::wstring FlatLevelSource::gatherStats() { return L"FlatLevelSource"; }
|
||||
std::vector<Biome::MobSpawnerData*>* FlatLevelSource::getMobsAt(
|
||||
MobCategory* mobCategory, int x, int y, int z) {
|
||||
Biome* biome = level->getBiome(x, z);
|
||||
if (biome == NULL) {
|
||||
return NULL;
|
||||
if (biome == nullptr) {
|
||||
return nullptr;
|
||||
}
|
||||
return biome->getMobs(mobCategory);
|
||||
}
|
||||
@@ -122,7 +122,7 @@ std::vector<Biome::MobSpawnerData*>* FlatLevelSource::getMobsAt(
|
||||
TilePos* FlatLevelSource::findNearestMapFeature(Level* level,
|
||||
const std::wstring& featureName,
|
||||
int x, int y, int z) {
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void FlatLevelSource::recreateLogicStructuresForChunk(int chunkX, int chunkZ) {
|
||||
|
||||
Reference in New Issue
Block a user