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:
Enno Rehling 2006-05-19 22:09:12 +00:00
parent dabb8ae3c2
commit 4ea7779932
1 changed files with 1 additions and 1 deletions

View File

@ -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;