fix bad data caused by bug 2356

This commit is contained in:
Enno Rehling 2017-08-18 21:02:23 +02:00
parent dced8618dc
commit e2578966e5
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);
return AT_READ_FAIL;
}
if (data->version <= NORCSPELL_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);
}