Fix crash caused by Lua error during startup (#7473)
parent
c66d977269
commit
07b1743d3d
|
@ -169,6 +169,9 @@ EmergeManager::~EmergeManager()
|
|||
}
|
||||
|
||||
delete thread;
|
||||
|
||||
// Mapgen init might not be finished if there is an error during startup.
|
||||
if (m_mapgens.size() > i)
|
||||
delete m_mapgens[i];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue