mirror of
				https://github.com/coop-deluxe/sm64coopdx.git
				synced 2025-10-30 08:01:01 +00:00 
			
		
		
		
	Fix obj_init_animation (#936)
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				Build coop / build-linux (push) Has been cancelled
				
			
		
			
				
	
				Build coop / build-steamos (push) Has been cancelled
				
			
		
			
				
	
				Build coop / build-windows-opengl (push) Has been cancelled
				
			
		
			
				
	
				Build coop / build-windows-directx (push) Has been cancelled
				
			
		
			
				
	
				Build coop / build-macos-arm (push) Has been cancelled
				
			
		
			
				
	
				Build coop / build-macos-intel (push) Has been cancelled
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	Build coop / build-linux (push) Has been cancelled
				
			Build coop / build-steamos (push) Has been cancelled
				
			Build coop / build-windows-opengl (push) Has been cancelled
				
			Build coop / build-windows-directx (push) Has been cancelled
				
			Build coop / build-macos-arm (push) Has been cancelled
				
			Build coop / build-macos-intel (push) Has been cancelled
				
			* Fix obj_init_animation * Update object_helpers.c
This commit is contained in:
		
							parent
							
								
									cee5957e11
								
							
						
					
					
						commit
						da13adf72c
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -810,8 +810,8 @@ void obj_set_gfx_pos_from_pos(struct Object *obj) { | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void obj_init_animation(struct Object *obj, s32 animIndex) { | void obj_init_animation(struct Object *obj, s32 animIndex) { | ||||||
|     if (!o || !obj) { return; } |     if (!obj) { return; } | ||||||
|     struct AnimationTable *animations = o->oAnimations; |     struct AnimationTable *animations = obj->oAnimations; | ||||||
|     if (animations && (u32)animIndex < animations->count) { |     if (animations && (u32)animIndex < animations->count) { | ||||||
|         geo_obj_init_animation(&obj->header.gfx, animations->anims[animIndex]); |         geo_obj_init_animation(&obj->header.gfx, animations->anims[animIndex]); | ||||||
|     } |     } | ||||||
|  | @ -3500,4 +3500,4 @@ s32 get_trajectory_length(Trajectory* trajectory) { | ||||||
|         c += 4; |         c += 4; | ||||||
|     } |     } | ||||||
|     return count; |     return count; | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Baconator2558
						Baconator2558