Skip to content

Commit 93543b5

Browse files
committed
[bugfix] Save latest state independent of command
1 parent 35d6c0d commit 93543b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/app/controller/controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ func (r *GameController) readLastState() {
123123

124124
// publish publishes the state to the UI and the teams
125125
func (r *GameController) publish(command *EventCommand) {
126+
r.saveLatestState()
126127
if command != nil {
127-
r.saveLatestState()
128128
r.saveStateHistory()
129129
}
130130
r.ApiServer.PublishState(*r.Engine.State)

0 commit comments

Comments
 (0)