ephysics - fix stacking comparsion correctly if 1 smaller than 1

this fixes a pretty trivial comparison issue..

found by PVS studio

@fix
This commit is contained in:
Carsten Haitzler 2017-07-28 20:12:33 +09:00
parent fec726e7e5
commit 51cc2e0ec6
1 changed files with 1 additions and 1 deletions

View File

@ -447,7 +447,7 @@ _ephysics_body_evas_stacking_sort_cb(const void *d1, const void *d2)
if (!stacking2) return -1;
if (stacking1->stacking < stacking2->stacking) return -1;
if (stacking2->stacking > stacking2->stacking) return 1;
if (stacking1->stacking > stacking1->stacking) return 1;
return 0;
}