Skip to content

Commit

Permalink
typo typo
Browse files Browse the repository at this point in the history
  • Loading branch information
alaingilbert committed Aug 22, 2022
1 parent 8bd12a3 commit 87d8908
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/wrapper/ogame.go
Original file line number Diff line number Diff line change
Expand Up @@ -3385,13 +3385,13 @@ func (b *OGame) sendFleet(celestialID ogame.CelestialID, ships []ogame.Quantifia
if unionID != 0 {
found := false
fleet1Doc.Find("select[name=acsValues] option").Each(func(i int, s *goquery.Selection) {
acsValue := s.AttrOr("value", "")
m := regexp.MustCompile(`\d+#\d+#\d+#\d+#.*#(\d+)`).FindStringSubmatch(acsValue)
acsValues := s.AttrOr("value", "")
m := regexp.MustCompile(`\d+#\d+#\d+#\d+#.*#(\d+)`).FindStringSubmatch(acsValues)
if len(m) == 2 {
optUnionID := utils.DoParseI64(m[1])
if unionID == optUnionID {
found = true
payload.Add("acsValues", acsValue)
payload.Add("acsValues", acsValues)
payload.Add("union", m[1])
mission = ogame.GroupedAttack
}
Expand Down

0 comments on commit 87d8908

Please sign in to comment.