forked from github/server
LERNEN Magie hat einen optionalen Parameter, was ich vergessen hatte.
This commit is contained in:
parent
c55a10db06
commit
7ad836e8e4
|
@ -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));
|
||||||
|
|
Loading…
Reference in New Issue