aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/map.cpp3
-rw-r--r--src/mapgen/mapgen_fractal.cpp4
2 files changed, 2 insertions, 5 deletions
diff --git a/src/map.cpp b/src/map.cpp
index a6b9d398f..40aba067e 100644
--- a/src/map.cpp
+++ b/src/map.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
/*
diff --git a/src/mapgen/mapgen_fractal.cpp b/src/mapgen/mapgen_fractal.cpp
index cabe0b850..96febb4f4 100644
--- a/src/mapgen/mapgen_fractal.cpp
+++ b/src/mapgen/mapgen_fractal.cpp
@@ -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;
}