fix non-drifting ships crash

This commit is contained in:
Enno Rehling 2018-09-16 11:25:34 +02:00
parent c5dd7d69df
commit 0c3126eb70
1 changed files with 2 additions and 2 deletions

View File

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