From f82f61b4c5163e952bfa3f3f6b0063ab4567775f Mon Sep 17 00:00:00 2001 From: Mink80 <46659983+Mink80@users.noreply.github.com> Date: Tue, 6 Dec 2022 02:11:51 +0100 Subject: [PATCH] fix: Fixes old version not being passed properly to OnRegionChange (#1295) --- Projects/Server/Mobiles/Mobile.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Projects/Server/Mobiles/Mobile.cs b/Projects/Server/Mobiles/Mobile.cs index 5d88b9d13..74484a327 100644 --- a/Projects/Server/Mobiles/Mobile.cs +++ b/Projects/Server/Mobiles/Mobile.cs @@ -6935,8 +6935,9 @@ public class Mobile : IHued, IComparable, ISpawnable, IObjectPropertyLis { Region.OnRegionChange(this, m_Region, newRegion); + var oldRegion = m_Region; m_Region = newRegion; - OnRegionChange(m_Region, newRegion); + OnRegionChange(oldRegion, newRegion); } }