uninitialized use of variable

This commit is contained in:
Enno Rehling 2007-04-22 16:30:43 +00:00
parent 6c71a3765a
commit 89108c997b
1 changed files with 1 additions and 2 deletions

View File

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