From 89108c997bbd09d4bc5643fec1cb5f467be5e35e Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 22 Apr 2007 16:30:43 +0000 Subject: [PATCH] uninitialized use of variable --- src/common/spells/spells.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) {