Mgflat, Mgv7: Fix noise crash on world exit.
authorparamat <mat.gregory@virginmedia.com>
Sat, 22 Apr 2017 04:16:50 +0000 (05:16 +0100)
committerparamat <mat.gregory@virginmedia.com>
Sat, 22 Apr 2017 04:37:33 +0000 (05:37 +0100)
commit4c03190ce80457f19f87f9a3a6b4b03fb4f08ee1
tree706d58a0fb74ccfdd61284469e214dfeb0c90cac
parentf6d1b682d3c3fa25e11d64d52c93b92760fe2612
Mgflat, Mgv7: Fix noise crash on world exit.

Fix crash caused by destructor 'delete' on noise objects that are not
created due to mapgen options.
Crash was caused by commit 57eaf62c697cec91890d9cb28d10385d293d2d3f
src/mapgen_flat.cpp
src/mapgen_v7.cpp