1
0
mirror of https://github.com/minetest/minetest.git synced 2025-06-30 23:20:22 +02:00

Remove superfluous pointer null checks

This commit is contained in:
QrchackOfficial
2017-06-05 01:52:55 +02:00
committed by ShadowNinja
parent 7bfd53ba58
commit 5cc8ad946e
10 changed files with 20 additions and 46 deletions

View File

@ -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();