kill afd->score.
[paraslash.git] / afs.c
diff --git a/afs.c b/afs.c
index 20f2455..3554008 100644 (file)
--- a/afs.c
+++ b/afs.c
@@ -486,12 +486,13 @@ int open_next_audio_file(void)
        struct audio_file_data afd;
        int ret, shmid;
        char buf[8];
+       long score;
 
        PARA_NOTICE_LOG("getting next audio file\n");
-       ret = score_get_best(&aft_row, &afd.score);
+       ret = score_get_best(&aft_row, &score);
        if (ret < 0)
                return ret;
-       ret = open_and_update_audio_file(aft_row, &afd);
+       ret = open_and_update_audio_file(aft_row, &afd, score);
        if (ret < 0)
                return ret;
        shmid = ret;