1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2024-11-24 06:32:46 +00:00

fix water BitLUT

This commit is contained in:
Alula 2024-11-01 13:48:42 +01:00
parent 34f2f9e8cd
commit d5a0b5c7c0
No known key found for this signature in database
GPG key ID: 3E00485503A1D8BA

View file

@ -38,7 +38,9 @@ impl BitLUT {
break; 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; i += 1;
} }
result result