do not trigger pointindex = 0 cout in debug mode

This commit is contained in:
Christopher Lackner 2022-09-12 16:34:45 +02:00
parent a8737418b9
commit 9fea21a2a1

View File

@ -46,8 +46,7 @@ namespace ngcore
/// Access entry
NETGEN_INLINE const FlatArray<T> operator[] (IndexType i) const
{
i = i-BASE;
return FlatArray<T> (index[i+1]-index[i], data+index[i]);
return FlatArray<T> (index[i-BASE+1]-index[i-BASE], data+index[i-BASE]);
}
NETGEN_INLINE T * Data() const { return data; }