1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-03-03 13:19:40 +00:00
This commit is contained in:
scrawl 2015-11-27 19:40:31 +01:00
parent 7cc950ed64
commit 89783e047b

View file

@ -2281,7 +2281,7 @@ namespace MWWorld
{ {
if (!targetActor.getRefData().isEnabled() || !actor.getRefData().isEnabled()) if (!targetActor.getRefData().isEnabled() || !actor.getRefData().isEnabled())
return false; // cannot get LOS unless both NPC's are enabled return false; // cannot get LOS unless both NPC's are enabled
if (!targetActor.getRefData().getBaseNode() || !targetActor.getRefData().getBaseNode()) if (!targetActor.getRefData().getBaseNode() || !actor.getRefData().getBaseNode())
return false; // not in active cell return false; // not in active cell
return mPhysics->getLineOfSight(actor, targetActor); return mPhysics->getLineOfSight(actor, targetActor);