Fix fence post bug which happens when a motor config is removed from the rocket while still used by a simulation.
This commit is contained in:
		
							parent
							
								
									bf692096fd
								
							
						
					
					
						commit
						009569cf74
					
				| @ -73,7 +73,7 @@ public class MotorConfigSpinner extends Spinner { | ||||
| 				} | ||||
| 				selectedIndex++; | ||||
| 			} | ||||
| 			if( selectedIndex > motorConfigs.length ) { | ||||
| 			if( selectedIndex >= motorConfigs.length ) { | ||||
| 				selectedIndex = 0; | ||||
| 			} | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user