diff --git a/src/common/spells/spells.c b/src/common/spells/spells.c index 523b556cf..c359e5272 100644 --- a/src/common/spells/spells.c +++ b/src/common/spells/spells.c @@ -6584,13 +6584,12 @@ sp_flying_ship(castorder *co) /* wenn kein Ziel gefunden, Zauber abbrechen */ if (pa->param[0]->flag == TARGET_NOTFOUND) return 0; + sh = pa->param[0]->data.sh; if (sh->type->construction->maxsize>50) { /* TODO: error message */ return 0; } - sh = pa->param[0]->data.sh; - /* Duration = 1, nur diese Runde */ c = shipcurse_flyingship(sh, mage, power, 1); if (c==NULL) {