mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 03:20:05 +00:00 
			
		
		
		
	Fix: selected time is uninitialized on layer initialization
This commit is contained in:
		
							parent
							
								
									3ba569354e
								
							
						
					
					
						commit
						2f2516b998
					
				
					 4 changed files with 11 additions and 0 deletions
				
			
		|  | @ -268,6 +268,8 @@ void AlertLayer::Initialize() | |||
| 
 | ||||
|    auto& alertLayerHandler = AlertLayerHandler::Instance(); | ||||
| 
 | ||||
|    p->selectedTime_ = manager::TimelineManager::Instance()->GetSelectedTime(); | ||||
| 
 | ||||
|    // Take a shared lock to prevent handling additional alerts while populating
 | ||||
|    // initial lists
 | ||||
|    std::shared_lock lock {alertLayerHandler.alertMutex_}; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat