forked from github/server
Fix für Kräuterkunde-Bug
This commit is contained in:
parent
3fff885d4c
commit
7d87d297bc
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue