Browse Source

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

Kolja Strohm 2 năm trước cách đây
mục cha
commit
d86cc874e8
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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++;
         }