From: Andy Spencer Date: Sun, 5 Jan 2014 20:34:24 +0000 (+0000) Subject: Delete original array in acopy X-Git-Url: http://pileus.org/git/?p=~andy%2Frhawk;a=commitdiff_plain;h=3c0b08700ba142e2cf0bea9991c858c98c076d8a Delete original array in acopy --- 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)