1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-20 07:23:51 +00:00

Fix calculateNpcStatModifiers call for non-NPCs

This commit is contained in:
Capostrophic 2020-03-28 19:13:02 +03:00
parent 79e7155f50
commit 99e89f23a6

View file

@ -1871,6 +1871,7 @@ namespace MWMechanics
// Reset dynamic stats, attributes and skills
calculateCreatureStatModifiers(iter->first, 0);
if (iter->first.getClass().isNpc())
calculateNpcStatModifiers(iter->first, 0);
if( iter->first == getPlayer())