mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix segfault on startup error on Android
This commit is contained in:
parent
0fdf24d64a
commit
540071002e
2 changed files with 5 additions and 3 deletions
|
@ -177,8 +177,10 @@ void AutoHideButtonBar::init(ISimpleTextureSource* tsrc,
|
|||
|
||||
AutoHideButtonBar::~AutoHideButtonBar()
|
||||
{
|
||||
m_starter.guibutton->setVisible(false);
|
||||
m_starter.guibutton->drop();
|
||||
if (m_starter.guibutton) {
|
||||
m_starter.guibutton->setVisible(false);
|
||||
m_starter.guibutton->drop();
|
||||
}
|
||||
}
|
||||
|
||||
void AutoHideButtonBar::addButton(touch_gui_button_id button_id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue