added parent link to custom artwork tree to go back to setup menu
[rocksndiamonds.git] / src / libgame / setup.c
index 192e2ce67e4d2b5307bdccf257e5ac9a4421563c..7c864576780e2164c0e50019ff96be61ace4c42e 100644 (file)
@@ -4068,6 +4068,9 @@ static void LoadArtworkInfoFromLevelInfo(ArtworkDirTree **artwork_node)
   LoadArtworkInfoFromLevelInfoExt(artwork_node, NULL, leveldir_first_all, TRUE);
   LoadArtworkInfoFromLevelInfoExt(artwork_node, NULL, leveldir_first_all, FALSE);
 
+  // add top tree node over all three separate sub-trees
+  *artwork_node = createTopTreeInfoNode(*artwork_node);
+
   // set all parent links (back links) in complete artwork tree
   setTreeInfoParentNodes(*artwork_node, NULL);
 }