drain_exp an den alten erwartungswert wieder angepasst.

This commit is contained in:
Enno Rehling 2002-02-03 08:54:36 +00:00
parent 451542789f
commit e8545f9c64
1 changed files with 3 additions and 1 deletions

View File

@ -976,7 +976,9 @@ drain_exp(unit *u, int n)
} }
if (sk != NOSKILL) { if (sk != NOSKILL) {
n = min(n, get_skill(u, sk)); n = min(n, get_skill(u, sk));
change_skill(u, sk, -1); if (learn_skill(u, sk, n) {
change_skill(u, sk, -1);
}
} }
} }
#endif #endif