diff options
author | abs <abs@NetBSD.org> | 2006-03-18 01:43:52 +0000 |
---|---|---|
committer | abs <abs@NetBSD.org> | 2006-03-18 01:43:52 +0000 |
commit | cd327188bd11497debe9746d2191418a9f6a983f (patch) | |
tree | 8ef4be2333f43649ff5be6f7586d4e8cdab198a4 /sail/extern.h | |
parent | 49b344a2eac8891a9543623de5335586dfd464f5 (diff) | |
download | bsdgames-darwin-cd327188bd11497debe9746d2191418a9f6a983f.tar.gz bsdgames-darwin-cd327188bd11497debe9746d2191418a9f6a983f.tar.zst bsdgames-darwin-cd327188bd11497debe9746d2191418a9f6a983f.zip |
If none of the boarding parties are set do not fall off the end of the
list. Addresses Coverity CID 1507. Also put pointers before shorts in
a struct rather than mixing them up
Diffstat (limited to 'sail/extern.h')
-rw-r--r-- | sail/extern.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sail/extern.h b/sail/extern.h index f2288406..164e852e 100644 --- a/sail/extern.h +++ b/sail/extern.h @@ -1,4 +1,4 @@ -/* $NetBSD: extern.h,v 1.27 2004/02/08 00:32:48 jsm Exp $ */ +/* $NetBSD: extern.h,v 1.28 2006/03/18 01:43:52 abs Exp $ */ /* * Copyright (c) 1983, 1993 @@ -148,8 +148,8 @@ struct logs { }; struct BP { - short turnsent; struct ship *toship; + short turnsent; short mensent; }; |