Browse Source

Remove redundant ref keyword

NX 7 years ago
parent
commit
b49dd3b613
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Source/Managed/ENet.cs

+ 2 - 2
Source/Managed/ENet.cs

@@ -471,7 +471,7 @@ namespace ENet {
 					nativePeers[i] = peers[i].NativeData;
 					nativePeers[i] = peers[i].NativeData;
 				}
 				}
 
 
-				Native.enet_host_broadcast_selective(nativeHost, channelID, packet.NativeData, ref nativePeers, (IntPtr)peers.Length);
+				Native.enet_host_broadcast_selective(nativeHost, channelID, packet.NativeData, nativePeers, (IntPtr)peers.Length);
 			}
 			}
 
 
 			packet.NativeData = IntPtr.Zero;
 			packet.NativeData = IntPtr.Zero;
@@ -860,7 +860,7 @@ namespace ENet {
 		internal static extern void enet_host_broadcast(IntPtr host, byte channelID, IntPtr packet);
 		internal static extern void enet_host_broadcast(IntPtr host, byte channelID, IntPtr packet);
 
 
 		[DllImport(nativeLibrary, CallingConvention = CallingConvention.Cdecl)]
 		[DllImport(nativeLibrary, CallingConvention = CallingConvention.Cdecl)]
-		internal static extern void enet_host_broadcast_selective(IntPtr host, byte channelID, IntPtr packet, ref IntPtr[] peers, IntPtr peersLength);
+		internal static extern void enet_host_broadcast_selective(IntPtr host, byte channelID, IntPtr packet, IntPtr[] peers, IntPtr peersLength);
 
 
 		[DllImport(nativeLibrary, CallingConvention = CallingConvention.Cdecl)]
 		[DllImport(nativeLibrary, CallingConvention = CallingConvention.Cdecl)]
 		internal static extern int enet_host_service(IntPtr host, out ENetEvent @event, uint timeout);
 		internal static extern int enet_host_service(IntPtr host, out ENetEvent @event, uint timeout);