mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 07:50:05 +00:00 
			
		
		
		
	Sometimes level 3 records aren't found by time, ensure a best-effort is always selected
This commit is contained in:
		
							parent
							
								
									af77db35a4
								
							
						
					
					
						commit
						690f60f3e3
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -26,6 +26,11 @@ ReturnType GetBoundedElement(std::map<Key, T>& map, Key key) | |||
|          // looking for
 | ||||
|          element = (--it)->second; | ||||
|       } | ||||
|       else | ||||
|       { | ||||
|          // The current element is a good substitute
 | ||||
|          element = it->second; | ||||
|       } | ||||
|    } | ||||
|    else if (map.size() > 0) | ||||
|    { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat