Merge pull request #495 from warmist/patch-1

fix skill-change so it would use insert_sorted
develop
expwnent 2015-01-18 13:40:00 -05:00
commit f0db62b3fb
1 changed files with 1 additions and 1 deletions

@ -73,7 +73,7 @@ end
if not skill then if not skill then
skill = df.unit_skill:new() skill = df.unit_skill:new()
skill.id = args.skill skill.id = args.skill
args.unit.status.current_soul.skills:insert('#', skill) utils.insert_sorted(args.unit.status.current_soul.skills,skill,'id')
end end
print('old: ' .. skill.rating .. ': ' .. skill.experience) print('old: ' .. skill.rating .. ': ' .. skill.experience)