Skip to content

Commit e0c9aa3

Browse files
committed
Reset game events and proposals on stage change
1 parent 2e78856 commit e0c9aa3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/app/statemachine/change_stage.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ func (s *StateMachine) processChangeChangeStage(newState *state.State, change *C
4949
newState.PlacementPos = geom.NewVector2(0.0, 0.0)
5050
}
5151

52+
// Reset game events and proposals
53+
newState.ProposalGroups = nil
54+
newState.GameEvents = nil
55+
5256
// update new stage
5357
newState.Stage = change.NewStage
5458

0 commit comments

Comments
 (0)