Skip to content

Commit da76e7f

Browse files
committed
fix discard bug
1 parent 3659dc3 commit da76e7f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tcl/main.tcl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,10 @@ proc discardscoreboard {} {
353353
foreach key [array names ::scoreboard] {
354354
set ::scoreboard($key) $::applied_scoreboard($key)
355355
}
356+
# Country is updated whenever player name is updated,
357+
# so make sure we set countries last.
358+
set ::scoreboard(p1country) $::applied_scoreboard(p1country)
359+
set ::scoreboard(p2country) $::applied_scoreboard(p2country)
356360
}
357361

358362
proc update_applied_scoreboard {} {

0 commit comments

Comments
 (0)