diff options
author | Emmanuel Leblond <emmanuel.leblond@gmail.com> | 2016-01-04 11:46:16 +0100 |
---|---|---|
committer | Emmanuel Leblond <emmanuel.leblond@gmail.com> | 2016-01-04 11:46:16 +0100 |
commit | cabf9234849508ba7285d1a5bafd3bab692eb80f (patch) | |
tree | c681c777e8a8867a0bbd955558a92926653ba300 /drivers/convex_decomp | |
parent | cb39db0b02c2d69994e2cd523844a2a9d3087d85 (diff) |
Remove unnecessary null pointer checks
Diffstat (limited to 'drivers/convex_decomp')
-rw-r--r-- | drivers/convex_decomp/b2Polygon.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/convex_decomp/b2Polygon.cpp b/drivers/convex_decomp/b2Polygon.cpp index 775f2adfe2..73955d3573 100644 --- a/drivers/convex_decomp/b2Polygon.cpp +++ b/drivers/convex_decomp/b2Polygon.cpp @@ -217,8 +217,8 @@ b2Polygon::b2Polygon(b2Triangle& t) { void b2Polygon::Set(const b2Polygon& p) { if (nVertices != p.nVertices){ nVertices = p.nVertices; - if (x) delete[] x; - if (y) delete[] y; + delete[] x; + delete[] y; x = new float32[nVertices]; y = new float32[nVertices]; } |