mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 08:53:52 +00:00
Do not allow wandering actor to have empty path
This commit is contained in:
parent
71350c6dff
commit
e616188265
1 changed files with 2 additions and 1 deletions
|
@ -293,7 +293,8 @@ namespace MWMechanics
|
||||||
}
|
}
|
||||||
|
|
||||||
if (storage.mState == AiWanderStorage::Wander_Walking
|
if (storage.mState == AiWanderStorage::Wander_Walking
|
||||||
&& (isDestinationHidden(actor, mPathFinder.getPath().back())
|
&& (mPathFinder.getPathSize() == 0
|
||||||
|
|| isDestinationHidden(actor, mPathFinder.getPath().back())
|
||||||
|| isAreaOccupiedByOtherActor(actor, mPathFinder.getPath().back())))
|
|| isAreaOccupiedByOtherActor(actor, mPathFinder.getPath().back())))
|
||||||
completeManualWalking(actor, storage);
|
completeManualWalking(actor, storage);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue