mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 07:23:51 +00:00
Add missing isNpc() check (bug #5206)
This commit is contained in:
parent
ef138e9afc
commit
8dbbe42f21
2 changed files with 2 additions and 1 deletions
|
@ -172,6 +172,7 @@
|
||||||
Bug #5186: Equipped item enchantments don't affect creatures
|
Bug #5186: Equipped item enchantments don't affect creatures
|
||||||
Bug #5190: On-strike enchantments can be applied to and used with non-projectile ranged weapons
|
Bug #5190: On-strike enchantments can be applied to and used with non-projectile ranged weapons
|
||||||
Bug #5196: Dwarven ghosts do not use idle animations
|
Bug #5196: Dwarven ghosts do not use idle animations
|
||||||
|
Bug #5206: A "class does not have NPC stats" error when player's follower kills an enemy with damage spell
|
||||||
Feature #1774: Handle AvoidNode
|
Feature #1774: Handle AvoidNode
|
||||||
Feature #2229: Improve pathfinding AI
|
Feature #2229: Improve pathfinding AI
|
||||||
Feature #3025: Analogue gamepad movement controls
|
Feature #3025: Analogue gamepad movement controls
|
||||||
|
|
|
@ -1017,7 +1017,7 @@ namespace MWMechanics
|
||||||
{
|
{
|
||||||
if (caster == player || playerFollowers.find(caster) != playerFollowers.end())
|
if (caster == player || playerFollowers.find(caster) != playerFollowers.end())
|
||||||
{
|
{
|
||||||
if (caster.getClass().getNpcStats(caster).isWerewolf())
|
if (caster.getClass().isNpc() && caster.getClass().getNpcStats(caster).isWerewolf())
|
||||||
caster.getClass().getNpcStats(caster).addWerewolfKill();
|
caster.getClass().getNpcStats(caster).addWerewolfKill();
|
||||||
|
|
||||||
MWBase::Environment::get().getMechanicsManager()->actorKilled(ptr, player);
|
MWBase::Environment::get().getMechanicsManager()->actorKilled(ptr, player);
|
||||||
|
|
Loading…
Reference in a new issue