Fix crash caused by Lua error during startup (#7473)

This commit is contained in:
red-001 2018-06-22 20:04:41 +01:00 committed by Loïc Blot
parent 85ce23b165
commit 971dea7efd

@ -146,7 +146,10 @@ EmergeManager::~EmergeManager()
}
delete thread;
delete m_mapgens[i];
// Mapgen init might not be finished if there is an error during startup.
if (m_mapgens.size() > i)
delete m_mapgens[i];
}
delete biomemgr;