bugfix, aufruf von r_connect mit NODIRECTION ist schlecht

This commit is contained in:
Enno Rehling 2004-09-11 07:09:59 +00:00
parent 40262c3466
commit 72d506c1cd
1 changed files with 1 additions and 1 deletions

View File

@ -553,7 +553,7 @@ move_ship(ship * sh, region * from, region * to, region_list * route)
}
#ifndef NDEBUG
if (rterrain(sh->region)!=T_OCEAN) {
if (rterrain(sh->region)!=T_OCEAN && sh->coast!=NODIRECTION) {
region * rcoast = rconnect(sh->region, sh->coast);
if (rterrain(rcoast)!=T_OCEAN) {
log_error(("ship %s sailed into a coast with no ocean neighbours.\n",