mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 21:53:51 +00:00
Fix function with no return value
This commit is contained in:
parent
99b465eede
commit
513e99148e
1 changed files with 2 additions and 2 deletions
|
@ -125,16 +125,16 @@ bool AiSequence::isInCombat() const
|
|||
|
||||
bool AiSequence::isEngagedWithActor() const
|
||||
{
|
||||
bool isFightingNpc = false;
|
||||
for (std::list<AiPackage *>::const_iterator it = mPackages.begin(); it != mPackages.end(); ++it)
|
||||
{
|
||||
if ((*it)->getTypeId() == AiPackage::TypeIdCombat)
|
||||
{
|
||||
MWWorld::Ptr target2 = (*it)->getTarget();
|
||||
if (!target2.isEmpty() && target2.getClass().isNpc())
|
||||
isFightingNpc = true;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool AiSequence::hasPackage(int typeId) const
|
||||
|
|
Loading…
Reference in a new issue