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 2eea429 commit 9180d0fCopy full SHA for 9180d0f
internal/app/store/store.go
@@ -91,6 +91,12 @@ func (s *Store) Load() error {
91
if err := protojson.Unmarshal(b, entry); err != nil {
92
return errors.Errorf("Could not unmarshal entry: %v %v", b, err)
93
}
94
+ // Compatibility: Add hull colors to older states
95
+ for _, team := range state.BothTeams() {
96
+ if entry.State.TeamInfo(team).HullColor == nil {
97
+ entry.State.TeamInfo(team).HullColor = new(state.HullColor)
98
+ }
99
100
s.entries = append(s.entries, entry)
101
102
0 commit comments