- study_days fix for orcs

This commit is contained in:
Enno Rehling 2009-07-08 13:45:25 +00:00
parent d4cf3cdee2
commit 6116d79a60

View file

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