aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2015-03-30 19:55:14 +0200
committerLoic Blot <loic.blot@unix-experience.fr>2015-03-30 19:55:14 +0200
commit6a48844eba16fb955ef4992bef539af66c595d0c (patch)
tree5317dc6f7a0d8b175d87855b08e551e08e220c5c
parentff924ef0dcd90eb227f772e15a1a3b01f7cc0745 (diff)
downloadminetest-6a48844eba16fb955ef4992bef539af66c595d0c.tar.gz
minetest-6a48844eba16fb955ef4992bef539af66c595d0c.tar.bz2
minetest-6a48844eba16fb955ef4992bef539af66c595d0c.zip
Use Buffer not SharedBuffer in NetworkPacket::oldForgePacket
-rw-r--r--src/network/networkpacket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkpacket.cpp b/src/network/networkpacket.cpp
index cfbca32d3..85d39d91d 100644
--- a/src/network/networkpacket.cpp
+++ b/src/network/networkpacket.cpp
@@ -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);