1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-03 23:39:40 +00:00

Do not allow wandering actor to have empty path

This commit is contained in:
elsid 2020-05-16 16:07:17 +02:00
parent 71350c6dff
commit e616188265
No known key found for this signature in database
GPG key ID: B845CB9FEE18AB40

View file

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