We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b4d46c commit 0ef2985Copy full SHA for 0ef2985
internal/app/engine/process_continue_next_action.go
@@ -304,7 +304,10 @@ func (e *Engine) ballPlacementTeam() state.Team {
304
}
305
306
// no team failed at ball placement yet, team of next command is preferred
307
- teamInFavor := *e.currentState.NextCommand.ForTeam
+ teamInFavor := state.Team_UNKNOWN
308
+ if e.currentState.NextCommand != nil {
309
+ teamInFavor = *e.currentState.NextCommand.ForTeam
310
+ }
311
if teamInFavor.Unknown() {
312
// select a team by 50% chance (for example for force start)
313
teamInFavor = e.randomTeam()
0 commit comments