mirror of
				https://github.com/amevarashi/RJW-Sexperience.git
				synced 2024-08-14 23:54:08 +00:00 
			
		
		
		
	Fix IndexOutOfRange error
This commit is contained in:
		
							parent
							
								
									1e9d4d1055
								
							
						
					
					
						commit
						1142deb519
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -8,7 +8,8 @@ namespace RJWSexperience
 | 
			
		|||
		{
 | 
			
		||||
			get
 | 
			
		||||
			{
 | 
			
		||||
				if (pawn?.health?.hediffSet?.HasHediff(VariousDefOf.CumAddiction) ?? false) return MinimumValueforStage.Count;
 | 
			
		||||
				if (pawn?.health?.hediffSet?.HasHediff(VariousDefOf.CumAddiction) ?? false)
 | 
			
		||||
					return def.stages.Count - 1;
 | 
			
		||||
				return base.CurStageIndex;
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue