mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-25 15:07:28 +00:00
Remove extra bit in BasicAttackBehavior write (#1039)
This commit is contained in:
parent
152c8ea712
commit
49d695a153
@ -147,7 +147,7 @@ void BasicAttackBehavior::Calculate(BehaviorContext* context, RakNet::BitStream*
|
|||||||
DoBehaviorCalculation(context, bitStream, branch);
|
DoBehaviorCalculation(context, bitStream, branch);
|
||||||
|
|
||||||
const auto endAddress = bitStream->GetWriteOffset();
|
const auto endAddress = bitStream->GetWriteOffset();
|
||||||
const uint16_t allocate = endAddress - startAddress + 1;
|
const uint16_t allocate = endAddress - startAddress;
|
||||||
|
|
||||||
bitStream->SetWriteOffset(allocatedAddress);
|
bitStream->SetWriteOffset(allocatedAddress);
|
||||||
bitStream->Write(allocate);
|
bitStream->Write(allocate);
|
||||||
|
Loading…
Reference in New Issue
Block a user