Skip to content

Commit

Permalink
Merge pull request #722 from ennorehling/master
Browse files Browse the repository at this point in the history
BUG 2356: fix broken data files
  • Loading branch information
ennorehling authored Aug 18, 2017
2 parents d13cd0d + 89d50e9 commit e52d4e3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/kernel/curse.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,12 @@ int curse_read(attrib * a, void *owner, gamedata *data)
assert(result == 0);
return AT_READ_FAIL;
}
if (data->version <= NOLANDITEM_VERSION) {
if ((c->type->flags & CURSE_NOAGE) && !(c_flags(c) & CURSE_NOAGE)) {
/* bugfix bug 2356 */
c_setflag(c, CURSE_NOAGE);
}
}
if (data->version < EXPLICIT_CURSE_ISNEW_VERSION) {
c_clearflag(c, CURSE_ISNEW);
}
Expand Down

0 comments on commit e52d4e3

Please sign in to comment.