mirror of
https://github.com/luanti-org/luanti.git
synced 2025-11-06 10:15:19 +01:00
Fix crash caused by Lua error during startup (#7473)
This commit is contained in:
@@ -169,7 +169,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;
|
||||
|
||||
Reference in New Issue
Block a user