ソースを参照

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

Kolja Strohm 2 年 前
コミット
d86cc874e8
1 ファイル変更1 行追加0 行削除
  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++;
         }