summaryrefslogtreecommitdiff
path: root/drivers/convex_decomp/b2Polygon.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2016-01-11 12:00:44 +0100
committerRémi Verschelde <remi@verschelde.fr>2016-01-11 12:00:44 +0100
commit7f82c8d7c5cbcb07bddf98a5006706d1f77c4444 (patch)
treec856982194ff120f5351b1c4e1821d98a43c904d /drivers/convex_decomp/b2Polygon.cpp
parentcbdcd99b858d48e14d11ec186b34f7b398cfc11d (diff)
parentcabf9234849508ba7285d1a5bafd3bab692eb80f (diff)
Merge pull request #3230 from touilleMan/issue-55
Remove unnecessary null pointer checks
Diffstat (limited to 'drivers/convex_decomp/b2Polygon.cpp')
-rw-r--r--drivers/convex_decomp/b2Polygon.cpp4
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];
}