Verified Commit 8cd536f7 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

core/model: fix comparison

parent 9529b946
......@@ -255,7 +255,7 @@ namespace pinocchio
if(existFrame(frame.name))
{
FrameIndex frame_id = getFrameId(frame.name);
if(frames[frame_id].type == frame.type)
if(frames[frame_id] == frame)
return (int)frame_id;
else
return -1;
......
Markdown is supported
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