From ef6dc61797816dd71d1c8cccb21082f044ef2a6e Mon Sep 17 00:00:00 2001 From: David Cernat Date: Thu, 30 Nov 2017 23:03:34 +0200 Subject: [PATCH] [Client] Send PlayerAttribute packets when attribute modifiers change --- apps/openmw/mwmp/LocalPlayer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/openmw/mwmp/LocalPlayer.cpp b/apps/openmw/mwmp/LocalPlayer.cpp index 3f464958d..ba2115969 100644 --- a/apps/openmw/mwmp/LocalPlayer.cpp +++ b/apps/openmw/mwmp/LocalPlayer.cpp @@ -243,7 +243,8 @@ void LocalPlayer::updateAttributes(bool forceUpdate) for (int i = 0; i < 8; ++i) { - if (ptrNpcStats.getAttribute(i).getBase() != creatureStats.mAttributes[i].mBase) + if (ptrNpcStats.getAttribute(i).getBase() != creatureStats.mAttributes[i].mBase || + ptrNpcStats.getAttribute(i).getModifier() != creatureStats.mAttributes[i].mMod) { ptrNpcStats.getAttribute(i).writeState(creatureStats.mAttributes[i]); attributesChanged = true;