aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2024-12-30 10:17:53 +0100
committerShauren <shauren.trinity@gmail.com>2024-12-30 10:17:53 +0100
commitd38941c19b51514fc16c52ca400b358555c13b38 (patch)
tree10815439592dc50048701ec7f119f0eb9e33836f
parentae28344083a510c5007ae6813e2e85ad2e155f33 (diff)
Core/Units: Fill CurrentAreaID updatefield
-rw-r--r--src/server/game/Entities/Unit/Unit.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp
index 37aa7bd0397..09bbb0382b2 100644
--- a/src/server/game/Entities/Unit/Unit.cpp
+++ b/src/server/game/Entities/Unit/Unit.cpp
@@ -3268,6 +3268,7 @@ void Unit::ProcessPositionDataChanged(PositionFullTerrainStatus const& data)
ZLiquidStatus oldLiquidStatus = GetLiquidStatus();
WorldObject::ProcessPositionDataChanged(data);
ProcessTerrainStatusUpdate(oldLiquidStatus, data.liquidInfo);
+ SetUpdateFieldValue(m_values.ModifyValue(&Unit::m_unitData).ModifyValue(&UF::UnitData::CurrentAreaID), data.areaId);
}
void Unit::ProcessTerrainStatusUpdate(ZLiquidStatus oldLiquidStatus, Optional<LiquidData> const& newLiquidData)