mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Remove null check that potentially hides programming errors
This commit is contained in:
parent
ba1608529e
commit
d99ed6d811
|
@ -835,9 +835,6 @@ static inline bool RepackMsg(const CMsgPacker *pMsg, CPacker &Packer, bool Sixup
|
||||||
int CServer::SendMsg(CMsgPacker *pMsg, int Flags, int ClientID)
|
int CServer::SendMsg(CMsgPacker *pMsg, int Flags, int ClientID)
|
||||||
{
|
{
|
||||||
CNetChunk Packet;
|
CNetChunk Packet;
|
||||||
if(!pMsg)
|
|
||||||
return -1;
|
|
||||||
|
|
||||||
mem_zero(&Packet, sizeof(CNetChunk));
|
mem_zero(&Packet, sizeof(CNetChunk));
|
||||||
if(Flags & MSGFLAG_VITAL)
|
if(Flags & MSGFLAG_VITAL)
|
||||||
Packet.m_Flags |= NETSENDFLAG_VITAL;
|
Packet.m_Flags |= NETSENDFLAG_VITAL;
|
||||||
|
|
Loading…
Reference in a new issue