Commit b84a402b authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(l2gi_searchsome): Set search_ended correctly when the end is set so

	that the iterator will loop over nothing, even though later
	texts exists.
parent 7ed20742
......@@ -960,10 +960,13 @@ l2gi_searchsome(L2g_iterator *l2gi,
assert(binfo != NULL);
l2gi->search_ended = 0;
l2gi->lno = key_value(binfo, index);
l2gi->tno = binfo->value_block[index];
if (end == 0)
l2gi->search_ended = 0;
else
l2gi->search_ended = l2gi->lno >= end;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment