projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff924ef
)
Use Buffer not SharedBuffer in NetworkPacket::oldForgePacket
author
Loic Blot
<loic.blot@unix-experience.fr>
Mon, 30 Mar 2015 17:55:14 +0000
(19:55 +0200)
committer
Loic Blot
<loic.blot@unix-experience.fr>
Mon, 30 Mar 2015 17:55:14 +0000
(19:55 +0200)
src/network/networkpacket.cpp
patch
|
blob
|
history
diff --git
a/src/network/networkpacket.cpp
b/src/network/networkpacket.cpp
index cfbca32d33a70372feb5c5acd55b97d3eeae10a3..85d39d91d679fa05b7a2962f60ccd94143a56afe 100644
(file)
--- a/
src/network/networkpacket.cpp
+++ b/
src/network/networkpacket.cpp
@@
-512,7
+512,7
@@
NetworkPacket& NetworkPacket::operator<<(video::SColor src)
Buffer<u8> NetworkPacket::oldForgePacket()
{
-
Shared
Buffer<u8> sb(m_datasize + 2);
+ Buffer<u8> sb(m_datasize + 2);
writeU16(&sb[0], m_command);
u8* datas = getU8Ptr(0);