(shp_nav): Skip ships that are landlocked.

The shp_mess() frees the ship record but shp_nav() continues
processing the ship record causing a corruption of the
memory poll which results in a server crash.
This commit is contained in:
Ron Koenderink 2006-01-21 00:30:17 +00:00
parent ed6514f7f3
commit 0558a08f4d

View file

@ -162,7 +162,7 @@ shp_nav(struct emp_qelem *list, double *minmobp, double *maxmobp,
continue; continue;
case CN_LANDLOCKED: case CN_LANDLOCKED:
shp_mess("is landlocked", mlp); shp_mess("is landlocked", mlp);
break; continue;
case CN_NAVIGABLE: case CN_NAVIGABLE:
break; break;
case CN_ERROR: case CN_ERROR: