fix bug 2266

This commit is contained in:
Enno Rehling 2016-12-16 17:17:04 +01:00 committed by Enno Rehling
parent 13128be0aa
commit 129f6fb68a
1 changed files with 1 additions and 1 deletions

View File

@ -595,7 +595,7 @@ void 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;