Browse Source

fix a problem when adding an element to an array at a specified index

Kolja Strohm 1 year ago
parent
commit
d86cc874e8
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Array.h

+ 1 - 0
Array.h

@@ -345,6 +345,7 @@ namespace Framework
             e->next = ne;
             e->var = t;
             e->set = 1;
+            if (last->next) last = last->next;
             count++;
         }