aboutsummaryrefslogtreecommitdiff
path: root/azalea-core/src
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-core/src')
-rw-r--r--azalea-core/src/bitset.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/azalea-core/src/bitset.rs b/azalea-core/src/bitset.rs
index b50988b1..5d71b151 100644
--- a/azalea-core/src/bitset.rs
+++ b/azalea-core/src/bitset.rs
@@ -273,6 +273,8 @@ where
#[inline]
pub fn set(&mut self, bit_index: usize) {
+ assert!(bit_index < N);
+
self.data[bit_index / 64] |= 1u64 << (bit_index % 64);
}
}