From 3c0b08700ba142e2cf0bea9991c858c98c076d8a Mon Sep 17 00:00:00 2001 From: Andy Spencer Date: Sun, 5 Jan 2014 20:34:24 +0000 Subject: [PATCH] Delete original array in acopy --- spades.awk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spades.awk b/spades.awk index ea10401..1d0e9d4 100644 --- a/spades.awk +++ b/spades.awk @@ -61,9 +61,11 @@ function sp_reset(type) function sp_acopy(dst, src, key) { - if (isarray(src)) + if (isarray(src)) { + delete(dst) for (key in src) json_copy(dst, key, src[key]) + } } function sp_save(file, game) -- 2.43.2