mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-27 12:32:17 +00:00
This commit is contained in:
1 parent
f4bd7c53c0
commit
228e0007ca
2 files changed
+10
No files matched your search
@@ -19,6 +19,11 @@ EQ::Net::ServertalkServerConnection::~ServertalkServerConnection()
|
||||
|
||||
void EQ::Net::ServertalkServerConnection::Send(uint16_t opcode, EQ::Net::Packet & p)
|
||||
{
|
||||
// pad zero size packets
|
||||
if (p.Length() == 0) {
|
||||
p.PutUInt8(0, 0);
|
||||
}
|
||||
|
||||
EQ::Net::DynamicPacket out;
|
||||
out.PutUInt32(0, p.Length());
|
||||
out.PutUInt16(4, opcode);
|
||||
|
||||
Reference in new issue
Block a user