Skip to content

Commit

Permalink
Fix Issue #138
Browse files Browse the repository at this point in the history
  • Loading branch information
Voxpire committed Sep 27, 2015
1 parent a00092f commit 43fad9d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Server/Mobile.cs
Expand Up @@ -7601,13 +7601,14 @@ public void UpdateRegion()
}

Region newRegion = Region.Find(m_Location, m_Map);

if (newRegion != m_Region)
Region oldRegion = m_Region;

if (newRegion != oldRegion)
{
Region.OnRegionChange(this, m_Region, newRegion);

m_Region = newRegion;
OnRegionChange(m_Region, newRegion);

Region.OnRegionChange(this, oldRegion, newRegion);
OnRegionChange(oldRegion, newRegion);
}
}

Expand Down Expand Up @@ -12363,4 +12364,4 @@ public virtual void OnSectorActivate()
public virtual void OnSectorDeactivate()
{ }
}
}
}

0 comments on commit 43fad9d

Please sign in to comment.