mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-16 18:05:22 +02:00
Clean up menus properly on client exit (#16150)
This commit is contained in:
@@ -217,10 +217,11 @@ void GameFormSpec::deleteFormspec()
|
||||
}
|
||||
}
|
||||
|
||||
GameFormSpec::~GameFormSpec() {
|
||||
void GameFormSpec::reset()
|
||||
{
|
||||
if (m_formspec)
|
||||
m_formspec->quitMenu();
|
||||
this->deleteFormspec();
|
||||
deleteFormspec();
|
||||
}
|
||||
|
||||
bool GameFormSpec::handleEmptyFormspec(const std::string &formspec, const std::string &formname)
|
||||
|
Reference in New Issue
Block a user