mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 23:51:09 -04:00
Fix function with no return value
This commit is contained in:
parent
99b465eede
commit
513e99148e
@ -125,16 +125,16 @@ bool AiSequence::isInCombat() const
|
|||||||
|
|
||||||
bool AiSequence::isEngagedWithActor() const
|
bool AiSequence::isEngagedWithActor() const
|
||||||
{
|
{
|
||||||
bool isFightingNpc = false;
|
|
||||||
for (std::list<AiPackage *>::const_iterator it = mPackages.begin(); it != mPackages.end(); ++it)
|
for (std::list<AiPackage *>::const_iterator it = mPackages.begin(); it != mPackages.end(); ++it)
|
||||||
{
|
{
|
||||||
if ((*it)->getTypeId() == AiPackage::TypeIdCombat)
|
if ((*it)->getTypeId() == AiPackage::TypeIdCombat)
|
||||||
{
|
{
|
||||||
MWWorld::Ptr target2 = (*it)->getTarget();
|
MWWorld::Ptr target2 = (*it)->getTarget();
|
||||||
if (!target2.isEmpty() && target2.getClass().isNpc())
|
if (!target2.isEmpty() && target2.getClass().isNpc())
|
||||||
isFightingNpc = true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool AiSequence::hasPackage(int typeId) const
|
bool AiSequence::hasPackage(int typeId) const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user