Merge pull request #722 from ennorehling/master

BUG 2356: fix broken data files
This commit is contained in:
Enno Rehling 2017-08-18 21:09:54 +02:00 committed by GitHub
commit e52d4e3419
1 changed files with 6 additions and 0 deletions

View File

@ -213,6 +213,12 @@ int curse_read(attrib * a, void *owner, gamedata *data)
assert(result == 0); assert(result == 0);
return AT_READ_FAIL; 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) { if (data->version < EXPLICIT_CURSE_ISNEW_VERSION) {
c_clearflag(c, CURSE_ISNEW); c_clearflag(c, CURSE_ISNEW);
} }