--- deliantra/server/random_maps/door.C 2006/12/30 18:45:28 1.7 +++ deliantra/server/random_maps/door.C 2006/12/31 18:10:41 1.8 @@ -56,7 +56,9 @@ if (!strcmp (doorstyle, "none")) return; + vdoors = find_style ("/styles/doorstyles", doorstyle, -1); + if (vdoors) hdoors = vdoors; else @@ -67,6 +69,7 @@ sprintf (doorpath, "/styles/doorstyles/hdoors%s", strrchr (vdoors->path, '/')); hdoors = find_style (doorpath, 0, -1); } + for (i = 0; i < RP->Xsize; i++) for (j = 0; j < RP->Ysize; j++) { @@ -80,6 +83,10 @@ this_door = pick_random_object (hdoors); else this_door = pick_random_object (vdoors); + + if (!this_door) + abort (); + new_door = arch_to_object (this_door->arch); this_door->copy_to (new_door); new_door->x = i;