Character sheet teleport error

Summary: When the game is paused, multiple teleport instructions can be given to the same idle hearthling. They resolve in order, but after the second one, an error happens.

Steps to reproduce:

  1. Make sure a hearthling is idle (load a paused game; they’re all idle on load) and pause the game.
  2. Use the character sheet teleport ability. Use it a second time.
  3. Unpause the game.

Expected Results: Only the last selected teleport location gets used and no error occurs.

Error:

release-927 (x64)[M]
No matching overload found, candidates:
Point3 get_standable_point(lua_State*,Physics&,Point3 const&,int)
Point3 get_standable_point(lua_State*,Physics&,custom [class std::weak_ptr<class radiant::om::Entity>],Point3 const&)
stack traceback:
	[C]: in function 'get_standable_point'
	radiant/modules/terrain.lua:78: in function 'place_entity'
	...h/ai/actions/compelled_behaviors/teleport_action.lua:35: in function <...h/ai/actions/compelled_behaviors/teleport_action.lua:17>
	[C]: ?
	[C]: ?
	[C]: ?
	[C]: ?
	[C]: in function 'run'
	stonehearth/components/ai/ai_component.lua:549: in function <stonehearth/components/ai/ai_component.lua:533>
	[C]: in function 'xpcall'
	radiant/modules/commons.lua:67: in function 'xpcall'
	stonehearth/components/ai/ai_component.lua:533: in function <stonehearth/components/ai/ai_component.lua:529>
	[C]: ?
	[C]: ?

Version Number and Mods in use: r927, only ACE (no modifications that should touch that) and Debug Tools

1 Like