X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Flibgame%2Fsetup.c;h=22fd408408e767508e4e336cd0cdf39781adb864;hp=c64c95c8ee84c6d5fdb17d6b110eaded193a01a7;hb=81978d087d71b598d29647a007ae9f90077cab87;hpb=54d132a180d8c428eb05c41b72b410ff1623994f;ds=sidebyside diff --git a/src/libgame/setup.c b/src/libgame/setup.c index c64c95c8..22fd4084 100644 --- a/src/libgame/setup.c +++ b/src/libgame/setup.c @@ -3967,8 +3967,17 @@ TreeInfo *getArtworkTreeInfoForUserLevelSet(int type) { char *artwork_set = getArtworkIdentifierForUserLevelSet(type); TreeInfo *artwork_first_node = ARTWORK_FIRST_NODE(artwork, type); + TreeInfo *ti = getTreeInfoFromIdentifier(artwork_first_node, artwork_set); - return getTreeInfoFromIdentifier(artwork_first_node, artwork_set); + if (ti == NULL) + { + ti = getTreeInfoFromIdentifier(artwork_first_node, + ARTWORK_DEFAULT_SUBDIR(type)); + if (ti == NULL) + Error(ERR_EXIT, "cannot find default graphics -- should not happen"); + } + + return ti; } boolean checkIfCustomArtworkExistsForCurrentLevelSet(void)