diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2017-07-28 20:12:33 +0900 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2017-07-29 09:08:40 +0900 |
commit | 51cc2e0ec6939f696cc09a766c4742f4bb1baa14 (patch) | |
tree | b99851409ac28b2dabb6686ce2b9345e22cc3c3d /src/lib/ephysics | |
parent | fec726e7e54890fbff35f9f47d21a32a51d406f5 (diff) |
ephysics - fix stacking comparsion correctly if 1 smaller than 1
this fixes a pretty trivial comparison issue..
found by PVS studio
@fix
Diffstat (limited to 'src/lib/ephysics')
-rw-r--r-- | src/lib/ephysics/ephysics_body.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ephysics/ephysics_body.cpp b/src/lib/ephysics/ephysics_body.cpp index 58a35b316c..8998d89fc6 100644 --- a/src/lib/ephysics/ephysics_body.cpp +++ b/src/lib/ephysics/ephysics_body.cpp | |||
@@ -447,7 +447,7 @@ _ephysics_body_evas_stacking_sort_cb(const void *d1, const void *d2) | |||
447 | if (!stacking2) return -1; | 447 | if (!stacking2) return -1; |
448 | 448 | ||
449 | if (stacking1->stacking < stacking2->stacking) return -1; | 449 | if (stacking1->stacking < stacking2->stacking) return -1; |
450 | if (stacking2->stacking > stacking2->stacking) return 1; | 450 | if (stacking1->stacking > stacking1->stacking) return 1; |
451 | 451 | ||
452 | return 0; | 452 | return 0; |
453 | } | 453 | } |