mirror of
				https://github.com/amevarashi/RJW-Sexperience.git
				synced 2024-08-14 23:54:08 +00:00 
			
		
		
		
	Check for NaN in JobDriver_CleanSelfWithBucket
This commit is contained in:
		
							parent
							
								
									900c3a758e
								
							
						
					
					
						commit
						dfdc60888f
					
				
					 1 changed files with 5 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -55,8 +55,10 @@ namespace RJWSexperience  // Used in Menstruation with this namespace
 | 
			
		|||
			}
 | 
			
		||||
			else
 | 
			
		||||
			{
 | 
			
		||||
				progress = 0;
 | 
			
		||||
				progress = 0f;
 | 
			
		||||
				severitycache = hediffcache.Severity;
 | 
			
		||||
				if (float.IsNaN(severitycache)) //TODO: Figure out WHY NaN is here
 | 
			
		||||
					severitycache = 0.1f;
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -73,8 +75,8 @@ namespace RJWSexperience  // Used in Menstruation with this namespace
 | 
			
		|||
		{
 | 
			
		||||
			if (hediffcache != null)
 | 
			
		||||
			{
 | 
			
		||||
				float cumamount = hediffcache.Severity * 10;
 | 
			
		||||
				hediffcache.Severity = 0;
 | 
			
		||||
				float cumamount = hediffcache.Severity * 10f;
 | 
			
		||||
				hediffcache.Severity = 0f;
 | 
			
		||||
				Bucket.AddCum(cumamount);
 | 
			
		||||
			}
 | 
			
		||||
			CleaningInit();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue