Procházet zdrojové kódy

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

Kolja Strohm před 2 roky
rodič
revize
d86cc874e8
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  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++;
         }