Skip to content

Commit

Permalink
DNM
Browse files Browse the repository at this point in the history
  • Loading branch information
Northn committed Jun 18, 2021
1 parent 181409a commit 4809cd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/RakLuaBitStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ bool RakLuaBitStream::emulIncomingRPC(uint8_t rpcId)
BitStream sendBs;
sendBs.Write<uint8_t>(ID_RPC);
sendBs.Write(rpcId);
sendBs.WriteCompressed<unsigned int>(BYTES_TO_BITS(bs->GetNumberOfBytesUsed()));
sendBs.WriteBits(bs->GetData(), BYTES_TO_BITS(bs->GetNumberOfBytesUsed()), false);
sendBs.WriteCompressed<unsigned int>(bs->GetNumberOfBitsUsed());
sendBs.WriteBits(bs->GetData(), bs->GetNumberOfBitsUsed(), false);
return reinterpret_cast<bool(__thiscall*)(void*, unsigned char*, int, PlayerID)>
(gRakLua.getRpcHook()->getTrampoline())(gRakPeer, sendBs.GetData(), sendBs.GetNumberOfBytesUsed(), gPlayerId);
}
Expand Down

0 comments on commit 4809cd9

Please sign in to comment.