forked from github/server
uninitialized use of variable
This commit is contained in:
parent
6c71a3765a
commit
89108c997b
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue