Skip to content

Commit

Permalink
Improve Write and Read uint24_t By Compressed
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiddinglife committed Nov 14, 2015
1 parent 22c0513 commit beb10e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/BitStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -1314,7 +1314,7 @@ namespace RakNet
template <>
inline void BitStream::WriteCompressed(const uint24_t &var)
{
Write(var);
WriteCompressed(var.val);
}

template <>
Expand Down Expand Up @@ -1646,7 +1646,7 @@ namespace RakNet
template <>
inline bool BitStream::ReadCompressed(uint24_t &outTemplateVar)
{
return Read(outTemplateVar);
return ReadCompressed(outTemplateVar.val);
}

template <>
Expand Down

0 comments on commit beb10e2

Please sign in to comment.