Bugfix for pre-selected skills.

This commit is contained in:
cib
2012-02-27 23:47:24 -08:00
parent 63aac3ae5f
commit 055ced7224

View File

@@ -123,9 +123,9 @@ datum/preferences
randomize_name()
..()
proc/ZeroSkills()
proc/ZeroSkills(var/forced = 0)
for(var/V in SKILLS) for(var/datum/skill/S in SKILLS[V])
if(!skills.Find(S.ID))
if(!skills.Find(S.ID) || forced)
skills[S.ID] = SKILL_NONE
proc/GetSkillClass(points)
@@ -513,6 +513,7 @@ datum/preferences
var/selected = input(user, "Select a skillset", "Skillset") as null|anything in SKILL_PRE
if(!selected) return
ZeroSkills(1)
skills = SKILL_PRE[selected]
ZeroSkills()
used_skillpoints = 0