Error message tweak

master
Marc Gilleron 2022-08-09 23:55:47 +01:00
parent 3ef0539c95
commit 66cf6e1539
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ void VoxelBufferInternal::set_default_values(FixedArray<uint64_t, VoxelBufferInt
uint64_t VoxelBufferInternal::get_voxel(int x, int y, int z, unsigned int channel_index) const {
ZN_ASSERT_RETURN_V(channel_index < MAX_CHANNELS, 0);
ZN_ASSERT_RETURN_V_MSG(is_position_valid(x, y, z), 0, format("At position ({}, {}, {})", x, y, z));
ZN_ASSERT_RETURN_V_MSG(is_position_valid(x, y, z), 0, format("Invalid position ({}, {}, {})", x, y, z));
const Channel &channel = _channels[channel_index];