fix auto-study plus-equal typo

This commit is contained in:
Enno Rehling 2015-03-19 15:31:25 +01:00
parent 60366ccb06
commit 9b64269b6d
1 changed files with 1 additions and 1 deletions

View File

@ -512,7 +512,7 @@ static double study_speedup(unit * u, skill_t s, study_rule_t rule)
if (rule == STUDY_AUTOTEACH) {
for (i = 0; i != u->skill_size; ++i) {
skill *sv = u->skills + i;
learnweeks = +(sv->level * (sv->level + 1) / 2.0);
learnweeks += (sv->level * (sv->level + 1) / 2.0);
}
if (learnweeks < turn / 2) {
return 2.0;