From 751cf50af882097a9c6ffb681dd0db7709616583 Mon Sep 17 00:00:00 2001 From: Mikko Mononen Date: Sun, 4 Sep 2011 12:39:53 +0000 Subject: [PATCH] Sample_TileMesh::buildTileMesh() was returning false instead of 0. --- RecastDemo/Source/Sample_TileMesh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RecastDemo/Source/Sample_TileMesh.cpp b/RecastDemo/Source/Sample_TileMesh.cpp index c6f8518..1705a0e 100644 --- a/RecastDemo/Source/Sample_TileMesh.cpp +++ b/RecastDemo/Source/Sample_TileMesh.cpp @@ -1115,7 +1115,7 @@ unsigned char* Sample_TileMesh::buildTileMesh(const int tx, const int ty, const { // The vertex indices are ushorts, and cannot point to more than 0xffff vertices. m_ctx->log(RC_LOG_ERROR, "Too many vertices per tile %d (max: %d).", m_pmesh->nverts, 0xffff); - return false; + return 0; } // Update poly flags from areas.