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
@@ -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)