aboutsummaryrefslogtreecommitdiff
path: root/src/mesh_generator_thread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesh_generator_thread.cpp')
-rw-r--r--src/mesh_generator_thread.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mesh_generator_thread.cpp b/src/mesh_generator_thread.cpp
index dce788a7c..d95506de1 100644
--- a/src/mesh_generator_thread.cpp
+++ b/src/mesh_generator_thread.cpp
@@ -40,8 +40,7 @@ CachedMapBlockData::~CachedMapBlockData()
{
assert(refcount_from_queue == 0);
- if (data)
- delete[] data;
+ delete[] data;
}
/*
@@ -60,8 +59,7 @@ QueuedMeshUpdate::QueuedMeshUpdate():
QueuedMeshUpdate::~QueuedMeshUpdate()
{
- if (data)
- delete data;
+ delete data;
}
/*