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:
parent
ed9da7cf06
commit
e803950463
1 changed files with 1 additions and 3 deletions
|
@ -159,9 +159,7 @@ nav_loadship(struct shpstr *sp, natid cnum)
|
||||||
sp->shp_autonav &= ~AN_LOADING;
|
sp->shp_autonav &= ~AN_LOADING;
|
||||||
|
|
||||||
if (!(sectp = getsectp(sp->shp_x, sp->shp_y)))
|
if (!(sectp = getsectp(sp->shp_x, sp->shp_y)))
|
||||||
return RET_SYS; /* safety */
|
return 0; /* safety */
|
||||||
/* I suspect RET_SYS isn't really what you want here --dfp */
|
|
||||||
|
|
||||||
|
|
||||||
landown = sectp->sct_own;
|
landown = sectp->sct_own;
|
||||||
shipown = sp->shp_own;
|
shipown = sp->shp_own;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue