forked from github/server
fix bad data caused by bug 2356
This commit is contained in:
parent
dced8618dc
commit
e2578966e5
|
@ -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 <= 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) {
|
if (data->version < EXPLICIT_CURSE_ISNEW_VERSION) {
|
||||||
c_clearflag(c, CURSE_ISNEW);
|
c_clearflag(c, CURSE_ISNEW);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue