--- deliantra/server/random_maps/treasure.C 2007/01/19 21:49:58 1.22 +++ deliantra/server/random_maps/treasure.C 2007/01/27 00:56:48 1.23 @@ -105,6 +105,12 @@ sprintf (stylefilepath, "%s/%s", styledirname, treasure_style); style_map = find_style (styledirname, treasure_style, -1); + if (!style_map) + { + LOG (llevError, "unable to load style map %s %s.\n", styledirname, treasure_style); + return; + } + /* all the treasure at one spot in the map. */ if (treasureoptions & CONCENTRATED) {