fix a_readint for deprecated attribs.

This commit is contained in:
Enno Rehling 2016-11-13 17:57:57 +01:00
parent 28aa2a56b8
commit 2d2ded8f0d
1 changed files with 3 additions and 2 deletions

View File

@ -2077,8 +2077,9 @@ int write_game(gamedata *data) {
int a_readint(attrib * a, void *owner, struct gamedata *data)
{
/* assert(sizeof(int)==sizeof(a->data)); */
READ_INT(data->store, &a->data.i);
int n;
READ_INT(data->store, &n);
if (a) a->data.i = n;
return AT_READ_OK;
}