mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-10 15:39:02 +00:00
Merge remote-tracking branch 'scrawl/hit'
This commit is contained in:
commit
2823e5693d
@ -339,7 +339,7 @@ namespace MWClass
|
||||
const MWWorld::Class &othercls = MWWorld::Class::get(victim);
|
||||
if(!othercls.isActor()) // Can't hit non-actors
|
||||
return;
|
||||
MWMechanics::CreatureStats &otherstats = getCreatureStats(victim);
|
||||
MWMechanics::CreatureStats &otherstats = victim.getClass().getCreatureStats(victim);
|
||||
if(otherstats.isDead()) // Can't hit dead actors
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user