Runtime fix for null.occupations undefined var

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5200 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
elly1989@rocketmail.com
2012-11-26 12:44:02 +00:00
parent 1327ddb017
commit ee67e6a0d8
2 changed files with 7 additions and 4 deletions

View File

@@ -210,6 +210,8 @@ datum/preferences
user << browse(dat, "window=preferences;size=560x560")
proc/SetChoices(mob/user, limit = 17, list/splitJobs = list("Chief Engineer"), width = 550, height = 500)
if(!job_master) return
//limit - The amount of jobs allowed per column. Defaults to 17 to make it look nice.
//splitJobs - Allows you split the table by job. You can make different tables for each department by including their heads. Defaults to CE to make it look nice.
//width - Screen' width. Defaults to 550 to make it look nice.

View File

@@ -88,6 +88,7 @@
if(!fexists(path)) return 0
var/savefile/S = new /savefile(path)
if(!S) return 0
S.cd = "/"
if(!slot) slot = default_slot
slot = sanitize_integer(slot, 1, MAX_SAVE_SLOTS, initial(default_slot))
if(slot != default_slot)