mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	ContentCAO: Fix segfault when minimap is disabled
This commit is contained in:
		@@ -894,6 +894,9 @@ u16 GenericCAO::getLightPosition(v3s16 *pos)
 | 
			
		||||
 | 
			
		||||
void GenericCAO::updateMarker()
 | 
			
		||||
{
 | 
			
		||||
	if (!m_client->getMinimap())
 | 
			
		||||
		return;
 | 
			
		||||
 | 
			
		||||
	if (!m_prop.show_on_minimap) {
 | 
			
		||||
		if (m_marker)
 | 
			
		||||
			m_client->getMinimap()->removeMarker(&m_marker);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user