mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	Fix segfault on startup error on Android
This commit is contained in:
		@@ -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,
 | 
			
		||||
 
 | 
			
		||||
@@ -75,7 +75,7 @@ struct button_info {
 | 
			
		||||
	float            repeatdelay;
 | 
			
		||||
	irr::EKEY_CODE   keycode;
 | 
			
		||||
	std::vector<int> ids;
 | 
			
		||||
	IGUIButton*      guibutton;
 | 
			
		||||
	IGUIButton*      guibutton = NULL;
 | 
			
		||||
	bool             immediate_release;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user