1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-17 23:56:30 +09:00

Various ArgumentNullExceptions added

This commit is contained in:
lidgren
2010-07-26 07:48:10 +00:00
parent bbeb7dfb2a
commit 494cc7acee
5 changed files with 49 additions and 1 deletions

View File

@@ -620,6 +620,9 @@ namespace Lidgren.Network
public bool SendMessage(NetOutgoingMessage msg, NetDeliveryMethod method, int sequenceChannel)
{
if (msg == null)
throw new ArgumentNullException("msg");
NetException.Assert(msg.m_libType == NetMessageLibraryType.Error, "Use SendLibrary() instead!");
if (msg.IsSent)