Verify bounds for linked lists
This commit is contained in:
parent
5e39abf730
commit
25424a01db
2 changed files with 9 additions and 4 deletions
2
advent.h
2
advent.h
|
@ -165,7 +165,7 @@ struct game_t {
|
|||
loc_t dloc[NDWARVES + 1]; // location of dwarves, initially hard-wired in
|
||||
loc_t odloc[NDWARVES + 1]; // prior loc of each dwarf, initially garbage
|
||||
loc_t fixed[NOBJECTS + 1]; // fixed location of object (if not IS_FREE)
|
||||
long link[NOBJECTS * 2 + 1]; // object-list links
|
||||
obj_t link[NOBJECTS * 2 + 1]; // object-list links
|
||||
loc_t place[NOBJECTS + 1]; // location of object
|
||||
long hinted[NHINTS]; // hinted[i] = true iff hint i has been used.
|
||||
long hintlc[NHINTS]; // hintlc[i] = how long at LOC with cond bit i
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue