mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-30 07:21:12 +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
|
||||
calculateCreatureStatModifiers(iter->first, 0);
|
||||
calculateNpcStatModifiers(iter->first, 0);
|
||||
if (iter->first.getClass().isNpc())
|
||||
calculateNpcStatModifiers(iter->first, 0);
|
||||
|
||||
if( iter->first == getPlayer())
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user