From 7d87d297bcfe52bc415d0dd2d5f493d6c68a1c10 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 3 Feb 2002 12:27:25 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20f=C3=BCr=20Kr=C3=A4uterkunde-Bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/kernel/eressea.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/kernel/eressea.c b/src/common/kernel/eressea.c index 2746ec0f8..4eda39604 100644 --- a/src/common/kernel/eressea.c +++ b/src/common/kernel/eressea.c @@ -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;