LERNEN Magie hat einen optionalen Parameter, was ich vergessen hatte.
This commit is contained in:
Enno Rehling 2005-05-22 21:02:42 +00:00
parent c55a10db06
commit 7ad836e8e4
1 changed files with 18 additions and 14 deletions

View File

@ -179,7 +179,11 @@ create_data(keyword_t kwd, const char * s, const char * sptr, int lindex)
/* learning, only one order_data per skill required */ /* learning, only one order_data per skill required */
if (kwd==K_STUDY) { if (kwd==K_STUDY) {
skill_t sk = findskill(parse_token(&sptr), lang); skill_t sk = findskill(parse_token(&sptr), lang);
if (sk!=NOSKILL) { switch (sk) {
case NOSKILL: /* fehler */
case SK_MAGIC: /* kann parameter haben */
break;
default: /* nur skill als Parameter, keine extras */
data = locale_array[lindex]->study_orders[sk]; data = locale_array[lindex]->study_orders[sk];
if (data==NULL) { if (data==NULL) {
data = (order_data*)malloc(sizeof(order_data)); data = (order_data*)malloc(sizeof(order_data));