1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-01 05:45:33 +00:00

Fix function with no return value

This commit is contained in:
James Carty 2018-08-17 20:17:26 +01:00
parent 99b465eede
commit 513e99148e

View file

@ -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