Fix calculateNpcStatModifiers call for non-NPCs

pull/578/head
Capostrophic 5 years ago
parent 79e7155f50
commit 99e89f23a6

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

Loading…
Cancel
Save