summaryrefslogtreecommitdiffstats
path: root/game/shared/world/feature.cc
diff options
context:
space:
mode:
Diffstat (limited to 'game/shared/world/feature.cc')
-rw-r--r--game/shared/world/feature.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/game/shared/world/feature.cc b/game/shared/world/feature.cc
index e704ced..8fe95f1 100644
--- a/game/shared/world/feature.cc
+++ b/game/shared/world/feature.cc
@@ -69,12 +69,7 @@ void world::Feature::place(const voxel_pos& vpos, const chunk_pos& cpos, VoxelSt
continue;
}
- if(voxel == nullptr) {
- voxels[it_index] = NULL_VOXEL_ID;
- }
- else {
- voxels[it_index] = voxel->get_id();
- }
+ voxels[it_index] = voxel ? voxel->get_id() : NULL_VOXEL_ID;
}
}
}