From 2d2ded8f0d2ae740bd73e81c8c6da3b9443e86cf Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 13 Nov 2016 17:57:57 +0100 Subject: [PATCH] fix a_readint for deprecated attribs. --- src/kernel/save.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/kernel/save.c b/src/kernel/save.c index 327fa4f1a..80e9ca3a6 100644 --- a/src/kernel/save.c +++ b/src/kernel/save.c @@ -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; }