diff --git a/libsrc/core/table.hpp b/libsrc/core/table.hpp index 1e90e283..77277944 100644 --- a/libsrc/core/table.hpp +++ b/libsrc/core/table.hpp @@ -120,7 +120,7 @@ public: NETGEN_INLINE Table (size_t asize, size_t entrysize) : FlatTable( asize, new size_t[asize+1], new T[asize*entrysize] ) { - for (size_t i : IntRange(size)) + for (size_t i : IntRange(size+1)) index[i] = i*entrysize; }