Skip to content

Commit dd11fb4

Browse files
vvvv-vvvvZeWaka
authored andcommitted
pathfinder: stringify args expecting numbers (#163)
1 parent ca47949 commit dd11fb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dmsrc/pathfinder.dm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
/**
2525
* Remove every link to the node with unique_id. Replace that node by null
2626
*/
27-
#define rustg_remove_node_astar(unique_id) RUSTG_CALL(RUST_G, "remove_node_astar")(unique_id)
27+
#define rustg_remove_node_astar(unique_id) RUSTG_CALL(RUST_G, "remove_node_astar")("[unique_id]")
2828

2929
/**
3030
* Compute the shortest path between start_node and goal_node using A*. Heuristic used is simple geometric distance
3131
*/
32-
#define rustg_generate_path_astar(start_node_id, goal_node_id) RUSTG_CALL(RUST_G, "generate_path_astar")(start_node_id, goal_node_id)
32+
#define rustg_generate_path_astar(start_node_id, goal_node_id) RUSTG_CALL(RUST_G, "generate_path_astar")("[start_node_id]", "[goal_node_id]")

0 commit comments

Comments
 (0)