Added a check when a user changes save slot. Thanks Carn <3

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4059 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
giacomand@gmail.com
2012-07-13 14:09:42 +00:00
parent 579959a98d
commit bb37b53f1a

View File

@@ -669,7 +669,7 @@ datum/preferences
else if(link_tags["changeslot"])
savefile_save(user)
user.client.activeslot = text2num(link_tags["changeslot"])
user.client.activeslot = min(max(text2num(link_tags["changeslot"]), 1), MAX_SAVE_SLOTS)
savefile_load(user)