forked from mirror/openmw-tes3mp
[Client] Send PlayerAttribute packets when attribute modifiers change
This commit is contained in:
parent
e8d636ebc3
commit
ef6dc61797
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue