Skip to content

Commit

Permalink
Quick fix for issue setnicka#1
Browse files Browse the repository at this point in the history
  • Loading branch information
trueMiskin committed Sep 4, 2021
1 parent 43f91a9 commit e249806
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion game/team.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ func (t *Team) LogCipherArrival(cipher CipherConfig) error {
for _, prevID := range cipher.LogSolved {
prevCipher := t.gameConfig.ciphersMap[prevID]
prevCipherStatus := t.cipherStatus[prevID]
if prevCipherStatus.Solved == nil && prevCipherStatus.Skip == nil {
_, found := t.cipherStatus[prevID]
if prevCipherStatus.Solved == nil && prevCipherStatus.Skip == nil && found {
if err := t.LogCipherSolved(prevCipher); err != nil {
return err
}
Expand Down

0 comments on commit e249806

Please sign in to comment.