FindPathToLocation action has wrong argument

Summary: Trying to use this AI compound action fails unless you specify an entity for its second leaf action because that leaf action is expecting the entity to be in ai.ARGS instead of ai.PREV, making it useless because then all it’s doing aside from calling stonehearth:find_path_to_entity is creating and disposing of an unused transient entity.

It’s no wonder this action isn’t used by anything in the game: it doesn’t work. :stuck_out_tongue: Just change line 45 to be

destination = ai.PREV.entity,

and it should work.

Version Number and Mods in use: