Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
alaingilbert committed Aug 22, 2022
1 parent b07b547 commit 8bd12a3
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) {
acsValues := s.AttrOr("value", "")
m := regexp.MustCompile(`\d+#\d+#\d+#\d+#.*#(\d+)`).FindStringSubmatch(acsValues)
acsValue := s.AttrOr("value", "")
m := regexp.MustCompile(`\d+#\d+#\d+#\d+#.*#(\d+)`).FindStringSubmatch(acsValue)
if len(m) == 2 {
optUnionID := utils.DoParseI64(m[1])
if unionID == optUnionID {
found = true
payload.Add("acsValues", acsValues)
payload.Add("acsValues", acsValue)
payload.Add("union", m[1])
mission = ogame.GroupedAttack
}
Expand Down

0 comments on commit 8bd12a3

Please sign in to comment.