Do not allow wandering actor to have empty path

pull/2851/head
elsid 5 years ago
parent 71350c6dff
commit e616188265
No known key found for this signature in database
GPG Key ID: B845CB9FEE18AB40

@ -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…
Cancel
Save