diff --git a/src/buildno.h b/src/buildno.h index b04d7a51f..c265d810c 100644 --- a/src/buildno.h +++ b/src/buildno.h @@ -1,3 +1,3 @@ #define VERSION_MAJOR 3 #define VERSION_MINOR 4 -#define VERSION_BUILD 689 +#define VERSION_BUILD 690 diff --git a/src/magic.c b/src/magic.c index 5a4cc6404..f31d6afb5 100644 --- a/src/magic.c +++ b/src/magic.c @@ -2580,7 +2580,7 @@ static castorder *cast_cmd(unit * u, order * ord) } s = getstrtoken(); } - if (!s[0] || strlen(s) == 0) { + if (!s || !s[0] || strlen(s) == 0) { /* Fehler "Es wurde kein Zauber angegeben" */ cmistake(u, ord, 172, MSG_MAGIC); return 0;