Fixed item type in PolyRefArray from int to dtPolyRef
This commit is contained in:
parent
b3d27bdb46
commit
6469a99f11
@ -63,7 +63,7 @@ public:
|
|||||||
}
|
}
|
||||||
m_size = n;
|
m_size = n;
|
||||||
}
|
}
|
||||||
inline void push(int item) { resize(m_size+1); m_data[m_size-1] = item; }
|
inline void push(dtPolyRef item) { resize(m_size+1); m_data[m_size-1] = item; }
|
||||||
inline dtPolyRef pop() { if (m_size > 0) m_size--; return m_data[m_size]; }
|
inline dtPolyRef pop() { if (m_size > 0) m_size--; return m_data[m_size]; }
|
||||||
inline const dtPolyRef& operator[](int i) const { return m_data[i]; }
|
inline const dtPolyRef& operator[](int i) const { return m_data[i]; }
|
||||||
inline dtPolyRef& operator[](int i) { return m_data[i]; }
|
inline dtPolyRef& operator[](int i) { return m_data[i]; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user