X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Ffiles.c;fp=src%2Ffiles.c;h=307b78895dd8e13c290095e3402f1355a1d7df23;hp=a2efae2a1874ceacf48a4210c472ebcbe193e867;hb=5c7c1498d0f9560dda7fad6bda93d3c1d373c11f;hpb=a3df8d3517ad409ea0913e06948b7f1fdb21a3de diff --git a/src/files.c b/src/files.c index a2efae2a..307b7889 100644 --- a/src/files.c +++ b/src/files.c @@ -13430,6 +13430,18 @@ void LoadMusicInfo(void) new = &(*new)->next; } } + + // add pointers to previous list nodes + + struct MusicFileInfo *node = music_file_info; + + while (node != NULL) + { + if (node->next) + node->next->prev = node; + + node = node->next; + } } static void add_helpanim_entry(int element, int action, int direction,