mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 22:23:51 +00:00
Merge remote-tracking branch 'scrawl/hit'
This commit is contained in:
commit
2823e5693d
1 changed files with 1 additions and 1 deletions
|
@ -339,7 +339,7 @@ namespace MWClass
|
||||||
const MWWorld::Class &othercls = MWWorld::Class::get(victim);
|
const MWWorld::Class &othercls = MWWorld::Class::get(victim);
|
||||||
if(!othercls.isActor()) // Can't hit non-actors
|
if(!othercls.isActor()) // Can't hit non-actors
|
||||||
return;
|
return;
|
||||||
MWMechanics::CreatureStats &otherstats = getCreatureStats(victim);
|
MWMechanics::CreatureStats &otherstats = victim.getClass().getCreatureStats(victim);
|
||||||
if(otherstats.isDead()) // Can't hit dead actors
|
if(otherstats.isDead()) // Can't hit dead actors
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue