X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Flibgame%2Fsetup.c;h=b419875a580e8fd1f87eab476ec4b496f232db7c;hp=493fc74e53283bc6dacc901bc5e6e7ec783c4e5d;hb=HEAD;hpb=26111e8a6e3efa228a897f120f45776ad60f2d48 diff --git a/src/libgame/setup.c b/src/libgame/setup.c index 493fc74e..b419875a 100644 --- a/src/libgame/setup.c +++ b/src/libgame/setup.c @@ -4594,6 +4594,12 @@ static boolean AddTreeSetToTreeInfoExt(TreeInfo *tree_node_old, char *tree_dir, TreeInfo *tree_node_new = getTreeInfoFromIdentifier(*tree_node_first, tree_subdir_new); + // if not found, check if added node is level group or artwork group + if (tree_node_new == NULL) + tree_node_new = getTreeInfoFromIdentifierExt(*tree_node_first, + tree_subdir_new, + TREE_NODE_TYPE_GROUP); + if (tree_node_new == NULL) // should not happen return FALSE;