Commit 231aeebe authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

[C++] Fix assert

parent 1d0039d5
......@@ -117,7 +117,7 @@ namespace se3
if (previousFrame < 0) {
previousFrame = getFrameId(names[parentJoint]);
}
assert(previousFrame >= frames.size() && "Frame index out of bound");
assert(previousFrame < frames.size() && "Frame index out of bound");
addFrame(Frame(body_name, parentJoint, previousFrame, body_placement, BODY));
return frames.size() - 1;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment