beats bug, from long to float; DUH

This commit is contained in:
Frank Villaro-Dixon 2015-01-03 12:59:44 +01:00
parent 2ac4aa8749
commit ec954823b5

View file

@ -37,7 +37,7 @@ music_load_beats(struct s_game *g, int music) { // {{{
while(fgets(buffer, sizeof(buffer), f)) {
//ugly, but it's a one time
beats = realloc(beats, (i+1) * sizeof(*beats));
beats[i] = (long)atof(strtrim(buffer));
beats[i] = strtof(strtrim(buffer), NULL);
i++;
}