Skip to content
Permalink
Browse files

Remove unnecessary checks before delete (#9500)

Co-authored-by: Nicolas Abril <nicolasabril@alunos.utfpr.edu.br>
  • Loading branch information
developedby and Nicolas Abril committed Mar 10, 2020
1 parent 0cb34ce commit 30d795b4b260291377e22e59a774e0f9278742e6
Showing with 2 additions and 5 deletions.
  1. +1 −2 src/map.cpp
  2. +1 −3 src/mapgen/mapgen_fractal.cpp
@@ -1285,8 +1285,7 @@ ServerMap::~ServerMap()
Close database if it was opened
*/
delete dbase;
if (dbase_ro)
delete dbase_ro;
delete dbase_ro;

#if 0
/*
@@ -90,9 +90,7 @@ MapgenFractal::MapgenFractal(MapgenFractalParams *params, EmergeManager *emerge)

MapgenFractal::~MapgenFractal()
{
if (noise_seabed)
delete noise_seabed;

delete noise_seabed;
delete noise_filler_depth;
}

0 comments on commit 30d795b

Please sign in to comment.
You can’t perform that action at this time.