From 59169f3eb1f4abb23235e37ef4ff34b9896cb472 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Thu, 21 Sep 2017 17:26:37 +0200 Subject: [PATCH] simplicate --- src/building_action.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/building_action.c b/src/building_action.c index f72af4412..55a1c0b6a 100644 --- a/src/building_action.c +++ b/src/building_action.c @@ -106,8 +106,7 @@ static int lc_read(struct attrib *a, void *owner, gamedata *data) building *b = (building *)owner; int result = 0; if (data->version < ATTRIBOWNER_VERSION) { - result = read_reference(&b, data, read_building_reference, resolve_building); - assert(b == owner); + READ_INT(data->store, NULL); } READ_TOK(store, name, sizeof(name)); if (strcmp(name, "tunnel_action") == 0) {