Skip to content

Commit

Permalink
Use Buffer not SharedBuffer in NetworkPacket::oldForgePacket
Browse files Browse the repository at this point in the history
  • Loading branch information
nerzhul committed Mar 30, 2015
1 parent ff924ef commit 6a48844
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/network/networkpacket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ NetworkPacket& NetworkPacket::operator<<(video::SColor src)

Buffer<u8> NetworkPacket::oldForgePacket()
{
SharedBuffer<u8> sb(m_datasize + 2);
Buffer<u8> sb(m_datasize + 2);
writeU16(&sb[0], m_command);

u8* datas = getU8Ptr(0);
Expand Down

0 comments on commit 6a48844

Please sign in to comment.