diff --git a/src/music.c b/src/music.c index a407856..01a68af 100644 --- a/src/music.c +++ b/src/music.c @@ -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++; }