mirror of
https://github.com/holub/mame
synced 2025-06-14 08:26:57 +03:00
poly.h: Fix DEBUG=1 builds
This commit is contained in:
parent
ed2369bcd4
commit
2aed6158b8
@ -153,8 +153,6 @@ public:
|
|||||||
// allocate a return a new item
|
// allocate a return a new item
|
||||||
ArrayType &next(int index = 0)
|
ArrayType &next(int index = 0)
|
||||||
{
|
{
|
||||||
assert(index < TrackingCount);
|
|
||||||
|
|
||||||
// track the maximum
|
// track the maximum
|
||||||
if (m_next > m_max)
|
if (m_next > m_max)
|
||||||
m_max = m_next;
|
m_max = m_next;
|
||||||
@ -175,7 +173,10 @@ public:
|
|||||||
// set the last item
|
// set the last item
|
||||||
m_next++;
|
m_next++;
|
||||||
if (TrackingCount > 0)
|
if (TrackingCount > 0)
|
||||||
|
{
|
||||||
|
assert(index < TrackingCount);
|
||||||
m_last[index] = item;
|
m_last[index] = item;
|
||||||
|
}
|
||||||
return *item;
|
return *item;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user