mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 23:51:09 -04: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