diff --git a/include/octomap_msgs/conversions.h b/include/octomap_msgs/conversions.h index 2459f6f..b0ceb41 100644 --- a/include/octomap_msgs/conversions.h +++ b/include/octomap_msgs/conversions.h @@ -71,7 +71,7 @@ namespace octomap_msgs{ * You will need to free the memory when you're done. */ static inline octomap::OcTree* binaryMsgToMap(const Octomap& msg){ - if (msg.id != "OcTree" || !msg.binary) + if (!msg.binary) return NULL; octomap::OcTree* octree = new octomap::OcTree(msg.resolution);