mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	ContentCAO: Fix segfault on quit (attached)
This commit is contained in:
		@@ -29,7 +29,10 @@ void ActiveObjectMgr::clear()
 | 
			
		||||
	// delete active objects
 | 
			
		||||
	for (auto &active_object : m_active_objects) {
 | 
			
		||||
		delete active_object.second;
 | 
			
		||||
		// Object must be marked as gone when children try to detach
 | 
			
		||||
		active_object.second = nullptr;
 | 
			
		||||
	}
 | 
			
		||||
	m_active_objects.clear();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void ActiveObjectMgr::step(
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user