forked from github/server
fix non-drifting ships crash
This commit is contained in:
parent
c5dd7d69df
commit
0c3126eb70
1 changed files with 2 additions and 2 deletions
|
@ -855,7 +855,7 @@ static void drifting_ships(region * r)
|
|||
}
|
||||
}
|
||||
|
||||
if (firstu != NULL) {
|
||||
if (rnext && firstu) {
|
||||
message *msg = msg_message("ship_drift", "ship dir", sh, dir);
|
||||
msg_to_ship_inmates(sh, &firstu, &lastu, msg);
|
||||
}
|
||||
|
@ -873,7 +873,7 @@ static void drifting_ships(region * r)
|
|||
sink_ship(sh);
|
||||
remove_ship(shp, sh);
|
||||
}
|
||||
else if (rnext != NULL) {
|
||||
else if (rnext) {
|
||||
/* Das Schiff und alle Einheiten darin werden nun von r
|
||||
* nach rnext verschoben. Danach eine Meldung. */
|
||||
add_regionlist(&route, rnext);
|
||||
|
|
Loading…
Reference in a new issue