1
0
Fork 0
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:
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 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);