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
 | 
								else
 | 
				
			||||||
			{
 | 
								{
 | 
				
			||||||
				progress = 0;
 | 
									progress = 0f;
 | 
				
			||||||
				severitycache = hediffcache.Severity;
 | 
									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)
 | 
								if (hediffcache != null)
 | 
				
			||||||
			{
 | 
								{
 | 
				
			||||||
				float cumamount = hediffcache.Severity * 10;
 | 
									float cumamount = hediffcache.Severity * 10f;
 | 
				
			||||||
				hediffcache.Severity = 0;
 | 
									hediffcache.Severity = 0f;
 | 
				
			||||||
				Bucket.AddCum(cumamount);
 | 
									Bucket.AddCum(cumamount);
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			CleaningInit();
 | 
								CleaningInit();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue