forked from github/server
fix a crash where flying ships try to anchor
This commit is contained in:
parent
ed77af5261
commit
357de0f249
1 changed files with 3 additions and 1 deletions
|
@ -1830,7 +1830,9 @@ sail(unit * u, order * ord, boolean move_on_land, region_list **routep)
|
|||
* transferiert wurden, kann der aktuelle Befehl gelöscht werden. */
|
||||
cycle_route(ord, u, step);
|
||||
set_order(&u->thisorder, NULL);
|
||||
set_coast(sh, last_point, current_point);
|
||||
if (!move_on_land) {
|
||||
set_coast(sh, last_point, current_point);
|
||||
}
|
||||
|
||||
if( is_cursed(sh->attribs, C_SHIP_FLYING, 0) ) {
|
||||
ADDMSG(&f->msgs, msg_message("shipfly", "ship from to", sh, starting_point, current_point));
|
||||
|
|
Loading…
Reference in a new issue