From 5cc8ad946efb3612eb6ea8655780b29fe4c62e19 Mon Sep 17 00:00:00 2001 From: QrchackOfficial Date: Mon, 5 Jun 2017 01:52:55 +0200 Subject: Remove superfluous pointer null checks --- src/client.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/client.cpp') diff --git a/src/client.cpp b/src/client.cpp index 56e35ac1f..1f6f64ce0 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -490,10 +490,8 @@ void Client::step(float dtime) MapBlock *block = m_env.getMap().getBlockNoCreateNoEx(r.p); if (block) { // Delete the old mesh - if (block->mesh != NULL) { - delete block->mesh; - block->mesh = NULL; - } + delete block->mesh; + block->mesh = NULL; if (r.mesh) { minimap_mapblock = r.mesh->moveMinimapMapblock(); -- cgit v1.2.3