Corrected limit for atloc, see init.c for filling double-linked list
This commit is contained in:
parent
aeaa0400cb
commit
5e39abf730
1 changed files with 1 additions and 1 deletions
|
@ -212,7 +212,7 @@ bool is_valid(struct game_t valgame)
|
||||||
|
|
||||||
/* Check that we have objects at locations */
|
/* Check that we have objects at locations */
|
||||||
for (loc_t loc = LOC_NOWHERE; loc <= NLOCATIONS; loc++) {
|
for (loc_t loc = LOC_NOWHERE; loc <= NLOCATIONS; loc++) {
|
||||||
if (valgame.atloc[loc] < NO_OBJECT || valgame.atloc[loc] > NLOCATIONS) {
|
if (valgame.atloc[loc] < NO_OBJECT || valgame.atloc[loc] > NOBJECTS * 2 + 1) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue