diff --git a/libsrc/core/table.hpp b/libsrc/core/table.hpp index 97d188c2..701e8a2f 100644 --- a/libsrc/core/table.hpp +++ b/libsrc/core/table.hpp @@ -46,8 +46,7 @@ namespace ngcore /// Access entry NETGEN_INLINE const FlatArray operator[] (IndexType i) const { - i = i-BASE; - return FlatArray (index[i+1]-index[i], data+index[i]); + return FlatArray (index[i-BASE+1]-index[i-BASE], data+index[i-BASE]); } NETGEN_INLINE T * Data() const { return data; }