소스 검색

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++;
         }