mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
Core/ByteBuffer: fixed bitreader, this fixes the "strange movement" bug
This commit is contained in:
@@ -170,7 +170,7 @@ class ByteBuffer
|
||||
uint32 value = 0;
|
||||
for (int32 i = bits-1; i >= 0; --i)
|
||||
if (ReadBit())
|
||||
value |= (1 << (_bitpos));
|
||||
value |= (1 << (i));
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user