From e5c64f69ad0d901423cdb9ca262a497841f118ee Mon Sep 17 00:00:00 2001 From: vivek-shankar Date: Fri, 13 Jan 2017 14:41:42 -0500 Subject: [PATCH] neigh pos correction --- src/roscontroller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/roscontroller.cpp b/src/roscontroller.cpp index a029620..0e3e2a0 100644 --- a/src/roscontroller.cpp +++ b/src/roscontroller.cpp @@ -222,7 +222,7 @@ namespace rosbzz_node{ /*Puts raw neighbours position*/ void roscontroller::raw_neighbours_pos_put(int id, buzz_utility::Pos_struct pos_arr ){ map< int, buzz_utility::Pos_struct >::iterator it = raw_neighbours_pos_map.find(id); - if(it!=neighbours_pos_map.end()) + if(it!=raw_neighbours_pos_map.end()) raw_neighbours_pos_map.erase(it); raw_neighbours_pos_map.insert(make_pair(id, pos_arr)); }