mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2024-11-21 13:12:45 +00:00
fix water BitLUT
This commit is contained in:
parent
34f2f9e8cd
commit
d5a0b5c7c0
|
@ -38,7 +38,9 @@ impl BitLUT {
|
|||
break;
|
||||
}
|
||||
|
||||
result.bits[i / 64] |= (bits[i] as u64) << (i % 64);
|
||||
let bit = bits[i];
|
||||
result.bits[bit as usize / 64] |= 1 << (bit % 64);
|
||||
|
||||
i += 1;
|
||||
}
|
||||
result
|
||||
|
|
Loading…
Reference in a new issue