# HG changeset patch # User Matthew Wild # Date 1365188388 -3600 # Node ID f56e449a63e3d27597b6ec3a369f4c0d31d13423 # Parent 9dd36e20c1e34122eb8541ca464434d480a43f12 util.stanza: Use correct index when replacing the tag in .tags (thanks daurnimator) diff -r 9dd36e20c1e3 -r f56e449a63e3 util/stanza.lua --- a/util/stanza.lua Fri Apr 05 19:13:46 2013 +0100 +++ b/util/stanza.lua Fri Apr 05 19:59:48 2013 +0100 @@ -166,7 +166,7 @@ curr_tag = curr_tag - 1; else self[i] = ret; - tags[i] = ret; + tags[curr_tag] = ret; end curr_tag = curr_tag + 1; end