diff --git a/Lidgren.Network/NetPeer.LatencySimulation.cs b/Lidgren.Network/NetPeer.LatencySimulation.cs index 083e395..49b11b4 100644 --- a/Lidgren.Network/NetPeer.LatencySimulation.cs +++ b/Lidgren.Network/NetPeer.LatencySimulation.cs @@ -141,7 +141,7 @@ namespace Lidgren.Network ba = NetUtility.GetCachedBroadcastAddress(); // TODO: refactor this check outta here - if (target.Address == ba) + if (target.Address.Equals(ba)) { // Some networks do not allow // a global broadcast so we use the BroadcastAddress from the configuration @@ -308,4 +308,4 @@ namespace Lidgren.Network } #endif } -} \ No newline at end of file +}