* Fixed two compiler warnings dealing with IPAddress equality.

0.6.0-stable
Adam Frisby 2008-04-18 09:35:24 +00:00
parent b280605237
commit a2b32bdd6f
1 changed files with 1 additions and 3 deletions

View File

@ -297,9 +297,7 @@ namespace OpenSim.Region.Environment.Scenes
{ {
foreach (Scene mscene in m_localScenes) foreach (Scene mscene in m_localScenes)
{ {
// .NET WEIRDNESS ALERT: need to compare the long if((mscene.RegionInfo.InternalEndPoint.Address.Equals(ipEndPoint.Address.Address)) &&
// values of address...
if ((mscene.RegionInfo.InternalEndPoint.Address.Address == ipEndPoint.Address.Address) &&
(mscene.RegionInfo.InternalEndPoint.Port == ipEndPoint.Port)) (mscene.RegionInfo.InternalEndPoint.Port == ipEndPoint.Port))
{ {
scene = mscene; scene = mscene;