poly.h: Fix DEBUG=1 builds

This commit is contained in:
AJR 2021-07-11 13:42:49 -04:00
parent ed2369bcd4
commit 2aed6158b8

View File

@ -153,8 +153,6 @@ public:
// allocate a return a new item
ArrayType &next(int index = 0)
{
assert(index < TrackingCount);
// track the maximum
if (m_next > m_max)
m_max = m_next;
@ -175,7 +173,10 @@ public:
// set the last item
m_next++;
if (TrackingCount > 0)
{
assert(index < TrackingCount);
m_last[index] = item;
}
return *item;
}