Changeset

5435:f56e449a63e3

util.stanza: Use correct index when replacing the tag in .tags (thanks daurnimator)
author Matthew Wild <mwild1@gmail.com>
date Fri, 05 Apr 2013 19:59:48 +0100
parents 5434:9dd36e20c1e3
children 5436:a4ba5819bf50
files util/stanza.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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