Sample_TileMesh::buildTileMesh() was returning false instead of 0.

This commit is contained in:
Mikko Mononen 2011-09-04 12:39:53 +00:00
parent 1076b27e0f
commit 751cf50af8

View File

@ -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.