mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2025-07-26 11:24:38 -04:00
bit muncher: correct comment on GetBit
This commit is contained in:
parent
a336c7da15
commit
3e79c295e2
@ -62,7 +62,7 @@ func (v *BitMuncher) SetBitsRead(n int) {
|
||||
v.bitsRead = n
|
||||
}
|
||||
|
||||
// GetBit reads a bit and returns it as uint32
|
||||
// GetBit reads a bit and returns it as bool
|
||||
func (v *BitMuncher) GetBit() bool {
|
||||
result := v.data[v.offset/byteLen] >> uint(v.offset%byteLen) & oneBit
|
||||
v.offset++
|
||||
|
Loading…
x
Reference in New Issue
Block a user