fix: Fixes old version not being passed properly to OnRegionChange (#1295)

This commit is contained in:
Mink80 2022-12-06 02:11:51 +01:00 committed by GitHub
parent b1cfb10ef8
commit f82f61b4c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6935,8 +6935,9 @@ public class Mobile : IHued, IComparable<Mobile>, ISpawnable, IObjectPropertyLis
{
Region.OnRegionChange(this, m_Region, newRegion);
var oldRegion = m_Region;
m_Region = newRegion;
OnRegionChange(m_Region, newRegion);
OnRegionChange(oldRegion, newRegion);
}
}