mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Remove superfluous pointer null checks
This commit is contained in:
parent
7bfd53ba58
commit
5cc8ad946e
10 changed files with 20 additions and 46 deletions
|
@ -97,16 +97,12 @@ MapBlock::~MapBlock()
|
|||
{
|
||||
//MutexAutoLock lock(mesh_mutex);
|
||||
|
||||
if(mesh)
|
||||
{
|
||||
delete mesh;
|
||||
mesh = NULL;
|
||||
}
|
||||
delete mesh;
|
||||
mesh = NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
if(data)
|
||||
delete[] data;
|
||||
delete[] data;
|
||||
}
|
||||
|
||||
bool MapBlock::isValidPositionParent(v3s16 p)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue