mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-02 20:39:42 +00:00
End combat when the target is outside the active grid
This commit is contained in:
parent
e6b6f2ced6
commit
bb36155a54
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ namespace MWMechanics
|
||||||
|
|
||||||
MWWorld::Ptr target = MWBase::Environment::get().getWorld()->searchPtrViaActorId(mTargetActorId);
|
MWWorld::Ptr target = MWBase::Environment::get().getWorld()->searchPtrViaActorId(mTargetActorId);
|
||||||
if (target.isEmpty())
|
if (target.isEmpty())
|
||||||
return false;
|
return true;
|
||||||
|
|
||||||
if(!target.getRefData().getCount() || !target.getRefData().isEnabled() // Really we should be checking whether the target is currently registered
|
if(!target.getRefData().getCount() || !target.getRefData().isEnabled() // Really we should be checking whether the target is currently registered
|
||||||
// with the MechanicsManager
|
// with the MechanicsManager
|
||||||
|
|
Loading…
Reference in a new issue