Skip to content

Commit 746d833

Browse files
committed
Fix Get(void*)
1 parent 11bc514 commit 746d833

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

storage.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1643,8 +1643,9 @@ class chunked_voxel_storage : public abstract_chunked_voxel_storage {
16431643
abstract_voxel_storage* c = get_chunk(cxyz);
16441644
if (c == nullptr) {
16451645
(*(typename T::value_type_non_ref*) loc) = 0;
1646+
} else {
1647+
c->Get(xyz - cxyz * chunk_size_, loc);
16461648
}
1647-
c->Get(xyz - cxyz * chunk_size_, loc);
16481649
}
16491650

16501651
void set_chunk(const vec_n<3, size_t>& ijk, abstract_voxel_storage* s) {

0 commit comments

Comments
 (0)