From a8e9da1c1953a6abd95a6bcf1538e04e1a3ae9bf Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Wed, 16 Aug 2017 21:48:04 +0200 Subject: [PATCH] do not upgrade keys for later data versions --- src/attributes/key.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/attributes/key.c b/src/attributes/key.c index 27347097f..1bd5cd9b4 100644 --- a/src/attributes/key.c +++ b/src/attributes/key.c @@ -61,6 +61,9 @@ static int a_readkeys(attrib * a, void *owner, gamedata *data) { static int a_readkey(attrib *a, void *owner, struct gamedata *data) { int res = a_readint(a, owner, data); + if (data->version>=KEYVAL_VERSION) { + return AT_READ_FAIL; + } return (res != AT_READ_FAIL) ? AT_READ_DEPR : res; }