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:
Kevin Ruland 2012-07-25 21:24:19 +00:00
parent bf692096fd
commit 009569cf74

View File

@ -73,7 +73,7 @@ public class MotorConfigSpinner extends Spinner {
}
selectedIndex++;
}
if( selectedIndex > motorConfigs.length ) {
if( selectedIndex >= motorConfigs.length ) {
selectedIndex = 0;
}