diff options
author | QrchackOfficial <qrchackofficial@gmail.com> | 2017-06-05 01:52:55 +0200 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2017-06-10 21:04:47 -0400 |
commit | 5cc8ad946efb3612eb6ea8655780b29fe4c62e19 (patch) | |
tree | d0edc2fa46e654e7443bedba942b1ec77ac4fef5 /src/client.cpp | |
parent | 7bfd53ba587a1be71c1f8b3ebc3208d59f4da9c1 (diff) | |
download | minetest-5cc8ad946efb3612eb6ea8655780b29fe4c62e19.tar.gz minetest-5cc8ad946efb3612eb6ea8655780b29fe4c62e19.tar.bz2 minetest-5cc8ad946efb3612eb6ea8655780b29fe4c62e19.zip |
Remove superfluous pointer null checks
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
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(); |