about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--convert.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/convert.go b/convert.go
index 0e64637..100538b 100644
--- a/convert.go
+++ b/convert.go
@@ -172,9 +172,9 @@ func parseLineTwo(SplitTLE []string) (LineTwo, error) {
 	}
 
 	// Parse the Satellite Number
-	SatelliteNumber, err := strconv.Atoi(SplitTLE[1][2:7])
+	SatelliteNumber, err := strconv.Atoi(SplitTLE[2][2:7])
 	if err != nil {
-		return LineTwo{}, fmt.Errorf("%s: %#v\n%v", "Could not parse the Satellite Number", SplitTLE[1][2:7], err)
+		return LineTwo{}, fmt.Errorf("%s: %#v\n%v", "Could not parse the Satellite Number", SplitTLE[2][2:7], err)
 	}
 
 	// Parse the Inclination