mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix crash caused by Lua error during startup (#7473)
This commit is contained in:
parent
c66d977269
commit
07b1743d3d
1 changed files with 4 additions and 1 deletions
|
@ -169,6 +169,9 @@ EmergeManager::~EmergeManager()
|
||||||
}
|
}
|
||||||
|
|
||||||
delete thread;
|
delete thread;
|
||||||
|
|
||||||
|
// Mapgen init might not be finished if there is an error during startup.
|
||||||
|
if (m_mapgens.size() > i)
|
||||||
delete m_mapgens[i];
|
delete m_mapgens[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue