Forgot a `break` inf a for-range loop. Broke all the mode detection system.

This commit is contained in:
Howl 2016-08-23 16:45:47 +02:00
parent 3de3443d87
commit 4d9f466491
1 changed files with 2 additions and 1 deletions

View File

@ -94,6 +94,7 @@ FROM beatmaps `+where+" ORDER BY id DESC LIMIT "+strconv.Itoa(common.InString(1,
if diffVal != 0 {
bm.Mode = osuapi.Mode(i)
bm.DifficultyRating = diffVal
break
}
}
bms = append(bms, bm)