mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 03:40:14 +00:00
Do not allow wandering actor to have empty path
This commit is contained in:
parent
71350c6dff
commit
e616188265
@ -293,7 +293,8 @@ namespace MWMechanics
|
||||
}
|
||||
|
||||
if (storage.mState == AiWanderStorage::Wander_Walking
|
||||
&& (isDestinationHidden(actor, mPathFinder.getPath().back())
|
||||
&& (mPathFinder.getPathSize() == 0
|
||||
|| isDestinationHidden(actor, mPathFinder.getPath().back())
|
||||
|| isAreaOccupiedByOtherActor(actor, mPathFinder.getPath().back())))
|
||||
completeManualWalking(actor, storage);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user