mirror of
				https://github.com/coop-deluxe/sm64coopdx.git
				synced 2025-10-30 08:01:01 +00:00 
			
		
		
		
	Fixed crash in bhv_wiggler_body_part_update()
This commit is contained in:
		
							parent
							
								
									40dd2935af
								
							
						
					
					
						commit
						f2cfa19da7
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -71,7 +71,7 @@ void bhv_wiggler_body_part_update(void) {
 | 
			
		|||
    // Sanity check the array size of our segments,
 | 
			
		||||
    // This should never be higher then 3
 | 
			
		||||
    // in normal circumstances.
 | 
			
		||||
    if (o->oBehParams2ndByte > 3) { return; }
 | 
			
		||||
    if (o->oBehParams2ndByte > 3 || o->oBehParams2ndByte < 0) { return; }
 | 
			
		||||
    
 | 
			
		||||
    struct ChainSegment *segment = &parent->oWigglerSegments[o->oBehParams2ndByte];
 | 
			
		||||
    
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue