]> git.pond.sub.org Git - empserver/commitdiff
(shp_nav): Skip ships that are landlocked.
authorRon Koenderink <rkoenderink@yahoo.ca>
Sat, 21 Jan 2006 00:30:17 +0000 (00:30 +0000)
committerRon Koenderink <rkoenderink@yahoo.ca>
Sat, 21 Jan 2006 00:30:17 +0000 (00:30 +0000)
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.

src/lib/subs/shpsub.c

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