mirror of
				https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
				synced 2024-08-15 00:43:45 +00:00 
			
		
		
		
	minor bugfix: wakeup before partnerinmybed to prevent null ref
This commit is contained in:
		
							parent
							
								
									117a6ae90c
								
							
						
					
					
						commit
						2fb5f220dd
					
				
					 2 changed files with 1 additions and 2 deletions
				
			
		
										
											Binary file not shown.
										
									
								
							| 
						 | 
				
			
			@ -17,9 +17,8 @@ namespace Rimworld_Animations {
 | 
			
		|||
        public static void Postfix(ref Pawn pawn, ref Job __result) {
 | 
			
		||||
 | 
			
		||||
            if(__result != null) {
 | 
			
		||||
 | 
			
		||||
                RestUtility.WakeUp(pawn);
 | 
			
		||||
                Pawn partnerInMyBed = LovePartnerRelationUtility.GetPartnerInMyBed(pawn);
 | 
			
		||||
                RestUtility.WakeUp(pawn);
 | 
			
		||||
                __result = JobMaker.MakeJob(DefDatabase<JobDef>.GetNamed("JoinInBedAnimation", true), partnerInMyBed, partnerInMyBed.CurrentBed());
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue