Fix crash in edbm_shortest_path_pick_ex

This commit is contained in:
Dalai Felinto
2018-08-21 12:13:53 -03:00
parent e9182a0f5d
commit 5200f6a2d7

View File

@@ -563,7 +563,7 @@ static bool edbm_shortest_path_pick_ex(
BMElem *ele_src, BMElem *ele_dst)
{
if (ELEM(NULL, ele_src, ele_dst) && (ele_src->head.htype != ele_dst->head.htype)) {
if (ELEM(NULL, ele_src, ele_dst) || (ele_src->head.htype != ele_dst->head.htype)) {
/* pass */
}
else if (ele_src->head.htype == BM_VERT) {