Verify table uid sanity more tightly
verify_row() refrains from rejecting zero uids, because some tables may contain blank entries, with zero uid. Change it to check only header sanity for entries that are not in use. This filters out all legitimately blank entries. Tighten up the uid check. For computing "in use", factor empobj_in_use() out of xdvisible(). Note that xdvisible()'s case EF_COUNTRY doesn't bother to check nat_stat, because that's implied by what it does check. It's not implied in empobj_in_use(), so add it there.
This commit is contained in:
parent
fbf5b78129
commit
b30c83cd64
4 changed files with 60 additions and 39 deletions
|
@ -100,5 +100,6 @@ struct empobj_chr;
|
|||
|
||||
extern char *empobj_chr_name(struct empobj *gp);
|
||||
extern int get_empobj_mob_max(int type);
|
||||
extern int empobj_in_use(int, void *);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue