Comparison

util/stanza.lua @ 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
parent 5424:7318527c6dea
child 5776:bd0ff8ae98a8
child 6466:6e67c73f730c
comparison
equal deleted inserted replaced
5434:9dd36e20c1e3 5435:f56e449a63e3
164 n_tags = n_tags - 1; 164 n_tags = n_tags - 1;
165 i = i - 1; 165 i = i - 1;
166 curr_tag = curr_tag - 1; 166 curr_tag = curr_tag - 1;
167 else 167 else
168 self[i] = ret; 168 self[i] = ret;
169 tags[i] = ret; 169 tags[curr_tag] = ret;
170 end 170 end
171 curr_tag = curr_tag + 1; 171 curr_tag = curr_tag + 1;
172 end 172 end
173 i = i + 1; 173 i = i + 1;
174 end 174 end