Add range check in table

This commit is contained in:
Matthias Hochsteger 2024-04-02 21:58:58 +02:00
parent db500f3cae
commit ff505f1e41

View File

@ -169,6 +169,7 @@ public:
/// Inserts element acont into row i. BASE-based. Does not test if already used, assumes to have enough memory
inline void AddSave (int i, const T & acont)
{
NETGEN_CHECK_RANGE(i, BASE, data.Size()+BASE);
((T*)data[i-BASE].col)[data[i-BASE].size] = acont;
data[i-BASE].size++;
}