Remove() was completely broken if not removing the very last item.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30982 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
acf58ffdab
commit
85af513ad6
@ -68,9 +68,8 @@ public:
|
||||
return false;
|
||||
delete items[index];
|
||||
item_count--;
|
||||
items[index] = items[item_count];
|
||||
if (index == item_iter)
|
||||
item_iter--;
|
||||
for (int i = index; i < item_count; i++)
|
||||
items[i] = items[i + 1];
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user