forked from github/server
Programmablauf falsch bei LERNE MAGIE
This commit is contained in:
parent
cf4487fa5c
commit
21d2bb231d
1 changed files with 3 additions and 2 deletions
|
@ -181,8 +181,9 @@ create_data(keyword_t kwd, const char * s, const char * sptr, int lindex)
|
||||||
skill_t sk = findskill(parse_token(&sptr), lang);
|
skill_t sk = findskill(parse_token(&sptr), lang);
|
||||||
switch (sk) {
|
switch (sk) {
|
||||||
case NOSKILL: /* fehler */
|
case NOSKILL: /* fehler */
|
||||||
case SK_MAGIC: /* kann parameter haben */
|
|
||||||
break;
|
break;
|
||||||
|
case SK_MAGIC: /* kann parameter haben */
|
||||||
|
if (*sptr != 0) break;
|
||||||
default: /* nur skill als Parameter, keine extras */
|
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) {
|
||||||
|
@ -204,7 +205,7 @@ create_data(keyword_t kwd, const char * s, const char * sptr, int lindex)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* orders with no parameter, only one order_data per order required */
|
/* orders with no parameter, only one order_data per order required */
|
||||||
if (kwd!=NOKEYWORD && *sptr == 0) {
|
else if (kwd!=NOKEYWORD && *sptr == 0) {
|
||||||
data = locale_array[lindex]->short_orders[kwd];
|
data = locale_array[lindex]->short_orders[kwd];
|
||||||
if (data == NULL) {
|
if (data == NULL) {
|
||||||
data = (order_data*)malloc(sizeof(order_data));
|
data = (order_data*)malloc(sizeof(order_data));
|
||||||
|
|
Loading…
Reference in a new issue