mirror of
				https://github.com/vegapnk/RJW-Genes.git
				synced 2024-08-15 00:23:31 +00:00 
			
		
		
		
	Nullcheck for Animal Trainability, related to #92
This commit is contained in:
		
							parent
							
								
									d6ff8bda45
								
							
						
					
					
						commit
						1a3b6f3432
					
				
					 2 changed files with 2 additions and 0 deletions
				
			
		
										
											Binary file not shown.
										
									
								
							| 
						 | 
				
			
			@ -45,7 +45,9 @@ namespace RJW_Genes
 | 
			
		|||
                {
 | 
			
		||||
                    if (RJW_Genes_Settings.rjw_genes_detailed_debug)
 | 
			
		||||
                        ModLog.Message($"{human} is a sextamer with bestiality on colony animal {animal} - trying to train");
 | 
			
		||||
                    if (animal.training == null) return;
 | 
			
		||||
                    var trainable = animal.training.NextTrainableToTrain();
 | 
			
		||||
                    if (trainable == null) return;
 | 
			
		||||
                    animal.training.Train(trainable, human);
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue