Skip to content

Commit 7222ae7

Browse files
committed
Fix later crash when setting invalid coordinate format
1 parent 30df562 commit 7222ae7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

streams/sqlite/voxel_stream_sqlite.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,7 @@ int VoxelStreamSQLite::get_lod_count() const {
500500
}
501501

502502
void VoxelStreamSQLite::set_preferred_coordinate_format(CoordinateFormat format) {
503+
ZN_ASSERT_RETURN(format >= 0 && format < COORDINATE_FORMAT_COUNT);
503504
_preferred_coordinate_format = format;
504505
}
505506

0 commit comments

Comments
 (0)