forked from github/server
FOLGE SCHIFF fehlerhaft - es wurde kein at_shiptrail erzeugt, wenn noch ein anderes attribut in der liste war, und stattdessen das attribut eines anderen shciffes verhunzt. Böse.
This commit is contained in:
parent
dabb8ae3c2
commit
4ea7779932
|
@ -549,7 +549,7 @@ leave_trail(ship * sh, region * from, region_list *route)
|
||||||
a = a->next;
|
a = a->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (a == NULL) {
|
if (a == NULL || a->type!=&at_shiptrail) {
|
||||||
a = a_add(&(r->attribs), a_new(&at_shiptrail));
|
a = a_add(&(r->attribs), a_new(&at_shiptrail));
|
||||||
td = (traveldir *)a->data.v;
|
td = (traveldir *)a->data.v;
|
||||||
td->no = sh->no;
|
td->no = sh->no;
|
||||||
|
|
Loading…
Reference in New Issue