mirror of
https://github.com/minetest/minetest.git
synced 2024-11-10 01:33:46 +01:00
Use Buffer not SharedBuffer in NetworkPacket::oldForgePacket
This commit is contained in:
parent
ff924ef0dc
commit
6a48844eba
@ -512,7 +512,7 @@ NetworkPacket& NetworkPacket::operator<<(video::SColor src)
|
|||||||
|
|
||||||
Buffer<u8> NetworkPacket::oldForgePacket()
|
Buffer<u8> NetworkPacket::oldForgePacket()
|
||||||
{
|
{
|
||||||
SharedBuffer<u8> sb(m_datasize + 2);
|
Buffer<u8> sb(m_datasize + 2);
|
||||||
writeU16(&sb[0], m_command);
|
writeU16(&sb[0], m_command);
|
||||||
|
|
||||||
u8* datas = getU8Ptr(0);
|
u8* datas = getU8Ptr(0);
|
||||||
|
Loading…
Reference in New Issue
Block a user