diff --git a/generators/voxel_generator_test.cpp b/generators/voxel_generator_test.cpp index f72ae80f..48ad6bd1 100644 --- a/generators/voxel_generator_test.cpp +++ b/generators/voxel_generator_test.cpp @@ -9,7 +9,7 @@ VoxelGeneratorTest::VoxelGeneratorTest() { } void VoxelGeneratorTest::set_mode(Mode mode) { - ERR_FAIL_INDEX(mode, MODE_COUNT) + ERR_FAIL_INDEX(mode, MODE_COUNT); _mode = mode; } diff --git a/terrain/voxel_terrain.cpp b/terrain/voxel_terrain.cpp index 8e5f948b..857db004 100644 --- a/terrain/voxel_terrain.cpp +++ b/terrain/voxel_terrain.cpp @@ -206,7 +206,7 @@ int VoxelTerrain::get_view_distance() const { } void VoxelTerrain::set_view_distance(int distance_in_voxels) { - ERR_FAIL_COND(distance_in_voxels < 0) + ERR_FAIL_COND(distance_in_voxels < 0); int d = distance_in_voxels / _map->get_block_size(); if (d != _view_distance_blocks) { print_line(String("View distance changed from ") + String::num(_view_distance_blocks) + String(" blocks to ") + String::num(d)); diff --git a/util/array_slice.h b/util/array_slice.h index 2bc24546..bdd68064 100644 --- a/util/array_slice.h +++ b/util/array_slice.h @@ -46,14 +46,14 @@ public: inline T &operator[](size_t i) { #ifdef TOOLS_ENABLED - CRASH_COND(i >= _size) + CRASH_COND(i >= _size); #endif return _ptr[i]; } inline const T &operator[](size_t i) const { #ifdef TOOLS_ENABLED - CRASH_COND(i >= _size) + CRASH_COND(i >= _size); #endif return _ptr[i]; } diff --git a/voxel_buffer.cpp b/voxel_buffer.cpp index 98a8b8b9..388f392b 100644 --- a/voxel_buffer.cpp +++ b/voxel_buffer.cpp @@ -40,12 +40,12 @@ uint64_t g_depth_max_values[] = { }; inline uint32_t get_depth_bit_count(VoxelBuffer::Depth d) { - CRASH_COND(d < 0 || d >= VoxelBuffer::DEPTH_COUNT) + CRASH_COND(d < 0 || d >= VoxelBuffer::DEPTH_COUNT); return g_depth_bit_counts[d]; } inline uint64_t get_max_value_for_depth(VoxelBuffer::Depth d) { - CRASH_COND(d < 0 || d >= VoxelBuffer::DEPTH_COUNT) + CRASH_COND(d < 0 || d >= VoxelBuffer::DEPTH_COUNT); return g_depth_max_values[d]; }