forked from github/server
fix a_readint for deprecated attribs.
This commit is contained in:
parent
28aa2a56b8
commit
2d2ded8f0d
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue