From 6469a99f119e6917715acab9210a5c7da8689e12 Mon Sep 17 00:00:00 2001 From: Mikko Mononen Date: Sun, 19 Jan 2014 15:32:09 +0200 Subject: [PATCH] Fixed item type in PolyRefArray from int to dtPolyRef --- RecastDemo/Source/NavMeshPruneTool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RecastDemo/Source/NavMeshPruneTool.cpp b/RecastDemo/Source/NavMeshPruneTool.cpp index 193d79a..270c8f6 100644 --- a/RecastDemo/Source/NavMeshPruneTool.cpp +++ b/RecastDemo/Source/NavMeshPruneTool.cpp @@ -63,7 +63,7 @@ public: } 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 const dtPolyRef& operator[](int i) const { return m_data[i]; } inline dtPolyRef& operator[](int i) { return m_data[i]; }