- study_days fix for orcs

This commit is contained in:
Enno Rehling 2009-07-08 13:45:25 +00:00
parent d4cf3cdee2
commit 6116d79a60
1 changed files with 6 additions and 4 deletions

View File

@ -161,10 +161,12 @@ study_days(unit * student, skill_t sk)
int speed = 30;
if (student->race->study_speed) {
speed += student->race->study_speed[sk];
}
if (speed<30) {
skill * sv = get_skill(student, sk);
if (sv==0) return 30;
if (sv==0) {
speed = 30;
}
}
}
return student->number * speed;
}