forked from github/server
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
b6dc3fd6f4
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue