forked from github/server
crashbug in spell headache
This commit is contained in:
parent
974747b4ad
commit
7eaff7d3a5
|
@ -4707,11 +4707,11 @@ sp_headache(castorder *co)
|
||||||
/* Macht alle nachfolgenden Zauber doppelt so teuer */
|
/* Macht alle nachfolgenden Zauber doppelt so teuer */
|
||||||
countspells(mage, 1);
|
countspells(mage, 1);
|
||||||
|
|
||||||
|
target = pa->param[0]->data.u; /* Zieleinheit */
|
||||||
|
|
||||||
/* wenn kein Ziel gefunden, Zauber abbrechen */
|
/* wenn kein Ziel gefunden, Zauber abbrechen */
|
||||||
if (target->number==0 || pa->param[0]->flag == TARGET_NOTFOUND) return 0;
|
if (target->number==0 || pa->param[0]->flag == TARGET_NOTFOUND) return 0;
|
||||||
|
|
||||||
target = pa->param[0]->data.u; /* Zieleinheit */
|
|
||||||
|
|
||||||
/* finde das größte Talent: */
|
/* finde das größte Talent: */
|
||||||
for (i=0;i!=target->skill_size;++i) {
|
for (i=0;i!=target->skill_size;++i) {
|
||||||
skill * sv = target->skills+i;
|
skill * sv = target->skills+i;
|
||||||
|
|
Loading…
Reference in New Issue