aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--go/game/ai.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/go/game/ai.go b/go/game/ai.go
index 35fa19cc..b7d42b0e 100644
--- a/go/game/ai.go
+++ b/go/game/ai.go
@@ -656,10 +656,7 @@ func (ai *SimpleAiControl) handleTargetSelection() Action {
return ctx.Action
}
- err := selectRandomTargets(s.Rand, t)
- if err != nil {
- return nil
- }
+ selectRandomTargets(s.Rand, t)
return ctx.Action
}