mirror of
https://github.com/minetest/minetest.git
synced 2025-02-27 15:23:50 +01:00
Fix crash caused by Lua error during startup (#7473)
This commit is contained in:
@ -146,6 +146,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];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user