Use Buffer not SharedBuffer in NetworkPacket::oldForgePacket
authorLoic Blot <loic.blot@unix-experience.fr>
Mon, 30 Mar 2015 17:55:14 +0000 (19:55 +0200)
committerLoic Blot <loic.blot@unix-experience.fr>
Mon, 30 Mar 2015 17:55:14 +0000 (19:55 +0200)
src/network/networkpacket.cpp

index cfbca32d33a70372feb5c5acd55b97d3eeae10a3..85d39d91d679fa05b7a2962f60ccd94143a56afe 100644 (file)
@@ -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);