Skip to content

Commit 34c0d44

Browse files
fix: win/loss count (#131)
1 parent b7e6f93 commit 34c0d44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/tracker/sf6/track.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ func getNewestMatch(sesh *model.Session, bl *BattleLog) model.Match {
284284
}
285285

286286
func getPreviousMatchForCharacter(sesh *model.Session, character string) *model.Match {
287-
for i := len(sesh.Matches) - 1; i >= 0; i-- {
287+
for i := 0; i < len(sesh.Matches); i++ {
288288
match := sesh.Matches[i]
289289
if match.Character == character {
290290
return match

0 commit comments

Comments
 (0)