mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-18 14:42:27 +00:00
Fix calculateNpcStatModifiers call for non-NPCs
This commit is contained in:
parent
79e7155f50
commit
99e89f23a6
@ -1871,7 +1871,8 @@ namespace MWMechanics
|
|||||||
|
|
||||||
// Reset dynamic stats, attributes and skills
|
// Reset dynamic stats, attributes and skills
|
||||||
calculateCreatureStatModifiers(iter->first, 0);
|
calculateCreatureStatModifiers(iter->first, 0);
|
||||||
calculateNpcStatModifiers(iter->first, 0);
|
if (iter->first.getClass().isNpc())
|
||||||
|
calculateNpcStatModifiers(iter->first, 0);
|
||||||
|
|
||||||
if( iter->first == getPlayer())
|
if( iter->first == getPlayer())
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user