added cursor key navigation to music info screens
[rocksndiamonds.git] / src / files.c
index a2efae2a1874ceacf48a4210c472ebcbe193e867..307b78895dd8e13c290095e3402f1355a1d7df23 100644 (file)
@@ -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,