mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00:00
Lua main menu: Fix crash on init lua error, mapgen dropdown index, and new worlds not saving index
This commit is contained in:
parent
ad4c065344
commit
a225efaec5
2 changed files with 27 additions and 12 deletions
|
@ -299,6 +299,8 @@ GUIEngine::~GUIEngine()
|
|||
{
|
||||
video::IVideoDriver* driver = m_device->getVideoDriver();
|
||||
assert(driver != 0);
|
||||
|
||||
//TODO: clean up m_menu here
|
||||
|
||||
lua_close(m_engineluastack);
|
||||
|
||||
|
@ -309,8 +311,9 @@ GUIEngine::~GUIEngine()
|
|||
if (m_textures[i] != 0)
|
||||
driver->removeTexture(m_textures[i]);
|
||||
}
|
||||
|
||||
m_cloud.clouds->drop();
|
||||
|
||||
if (m_cloud.clouds)
|
||||
m_cloud.clouds->drop();
|
||||
}
|
||||
|
||||
/******************************************************************************/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue