mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-10-02 06:55:33 +00:00
Fix warnings and increase demo text pool size
Fix three warnings added in fc5df2c, and increase the text pool size in
the demo. This would frequently be overflowed, even just by building
with the default settings and expanding the log.
This commit is contained in:
@@ -716,6 +716,8 @@ public:
|
||||
|
||||
void process(const dtMeshTile* tile, dtPoly** polys, dtPolyRef* refs, int count)
|
||||
{
|
||||
dtIgnoreUnused(polys);
|
||||
|
||||
for (int i = 0; i < count; ++i)
|
||||
{
|
||||
dtPolyRef ref = refs[i];
|
||||
@@ -914,6 +916,9 @@ public:
|
||||
|
||||
void process(const dtMeshTile* tile, dtPoly** polys, dtPolyRef* refs, int count)
|
||||
{
|
||||
dtIgnoreUnused(tile);
|
||||
dtIgnoreUnused(polys);
|
||||
|
||||
int numLeft = m_maxPolys - m_numCollected;
|
||||
int toCopy = count;
|
||||
if (toCopy > numLeft)
|
||||
|
||||
Reference in New Issue
Block a user