diff options
Diffstat (limited to 'new/stack.c')
| -rw-r--r-- | new/stack.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/new/stack.c b/new/stack.c index 748759c..ede49d3 100644 --- a/new/stack.c +++ b/new/stack.c @@ -375,6 +375,7 @@ void uiStackRemove(uiControl *st, uintptr_t index) removed = s->controls[index].c; nAfter = s->len - index - 1; + // TODO make sure this is correct memmove(&(s->controls[index + 1]), &(s->controls[index]), nAfter * sizeof (stackControl)); s->len--; if (s->parent != NULL) { |
