Fix error return value of nav_loadship()

Used RET_SYS as an error value, which is bogus; caller interprets
non-zero as "all loaded".  Return zero instead.
This commit is contained in:
Markus Armbruster 2008-08-03 10:25:48 -04:00
parent ed9da7cf06
commit e803950463

View file

@ -159,9 +159,7 @@ nav_loadship(struct shpstr *sp, natid cnum)
sp->shp_autonav &= ~AN_LOADING;
if (!(sectp = getsectp(sp->shp_x, sp->shp_y)))
return RET_SYS; /* safety */
/* I suspect RET_SYS isn't really what you want here --dfp */
return 0; /* safety */
landown = sectp->sct_own;
shipown = sp->shp_own;