Fix für Kräuterkunde-Bug

This commit is contained in:
Enno Rehling 2002-02-03 12:27:25 +00:00
parent 3fff885d4c
commit 7d87d297bc
1 changed files with 3 additions and 3 deletions

View File

@ -3078,11 +3078,11 @@ produceexp(struct unit * u, skill_t sk, int n)
{
if (n==0 || !playerrace(u->race)) return 0;
#if SKILLPOINTS
change_skill(u, SK_HERBALISM, PRODUCEEXP * n);
change_skill(u, sk, PRODUCEEXP * n);
return 1;
#else
if (learn_skill(u, SK_HERBALISM, PRODUCEEXP * n)) {
change_skill(u, SK_HERBALISM, n);
if (learn_skill(u, sk, PRODUCEEXP * n)) {
change_skill(u, sk, n);
return 1;
}
return 0;