beats bug, from long to float; DUH
This commit is contained in:
parent
2ac4aa8749
commit
ec954823b5
1 changed files with 1 additions and 1 deletions
|
@ -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++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue