Skip to content

Commit b339284

Browse files
committed
Bugfix: Set ByTeam for TooManyRobots correctly
1 parent f8e96b0 commit b339284

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/app/engine/process_botremoved.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func (e *Engine) processBotNumberPerTeam(team state.Team) {
3535
e.Enqueue(createGameEventChange(state.GameEvent_TOO_MANY_ROBOTS, state.GameEvent{
3636
Event: &state.GameEvent_TooManyRobots_{
3737
TooManyRobots: &state.GameEvent_TooManyRobots{
38-
ByTeam: e.currentState.Command.ForTeam,
38+
ByTeam: &team,
3939
NumRobotsAllowed: &numBotsAllowed,
4040
NumRobotsOnField: &numBots,
4141
BallLocation: ballPos,

0 commit comments

Comments
 (0)