Skip to content

Commit e30a914

Browse files
authored
Merge pull request #14 from onlytailei/tailei_revise
fix copy usage
2 parents cc1f95c + af7f5f3 commit e30a914

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/a_star.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ std::vector<std::vector<int> > calc_obstacle_map(
7979

8080

8181
bool verify_node(Node* node,
82-
vector<vector<int> > obmap,
82+
const vector<vector<int>>& obmap,
8383
int min_ox, int max_ox,
8484
int min_oy, int max_oy){
8585
if (node->x < min_ox || node->y < min_oy || node->x >= max_ox || node->y >= max_oy){

0 commit comments

Comments
 (0)