Browse Source

Minor change

Stanislav Denisov 5 years ago
parent
commit
62a8c12e4d
1 changed files with 4 additions and 4 deletions
  1. 4 4
      Source/Managed/ENet.cs

+ 4 - 4
Source/Managed/ENet.cs

@@ -473,7 +473,7 @@ namespace ENet {
 				throw new InvalidOperationException("Host not created");
 		}
 
-		private static void IsChannelLimited(int channelLimit) {
+		private static void IsChannelsLimited(int channelLimit) {
 			if (channelLimit < 0 || channelLimit > Library.maxChannelCount)
 				throw new ArgumentOutOfRangeException("channelLimit");
 		}
@@ -513,7 +513,7 @@ namespace ENet {
 			if (peerLimit < 0 || peerLimit > Library.maxPeers)
 				throw new ArgumentOutOfRangeException("peerLimit");
 
-			IsChannelLimited(channelLimit);
+			IsChannelsLimited(channelLimit);
 
 			if (address != null) {
 				var nativeAddress = address.Value.NativeData;
@@ -602,7 +602,7 @@ namespace ENet {
 
 		public Peer Connect(Address address, int channelLimit, uint data) {
 			IsCreated();
-			IsChannelLimited(channelLimit);
+			IsChannelsLimited(channelLimit);
 
 			var nativeAddress = address.NativeData;
 			var peer = new Peer(Native.enet_host_connect(nativeHost, ref nativeAddress, (IntPtr)channelLimit, data));
@@ -642,7 +642,7 @@ namespace ENet {
 
 		public void SetChannelLimit(int channelLimit) {
 			IsCreated();
-			IsChannelLimited(channelLimit);
+			IsChannelsLimited(channelLimit);
 
 			Native.enet_host_channel_limit(nativeHost, (IntPtr)channelLimit);
 		}