From JimJimTheJimmyMan on google groups:
> Where ever you find this in your code, you might want to take a second
> look at it:
>
> dtTileCache::buildNavMeshTile()
>
> if (navData)
> {
>
navmesh->removeTile(navmesh->getTileRefAt(tile->header->tx,tile-
>>header->ty,tile->header->tlayer),0,0);
> // Let the navmesh own the data.
> status =
navmesh->addTile(navData,navDataSize,DT_TILE_FREE_DATA,
> 0,0);
> if (dtStatusFailed(status))
> {
> dtFree(navData);
> return status;
> }
> }
>
>
> Sample_TileMesh::buildTile()
>
> if (data)
> {
> // Remove any previous data (navmesh owns and deletes
the data).
>
m_navMesh->removeTile(m_navMesh->getTileRefAt(tx,ty,0),0,0);
>
> // Let the navmesh own the data.
> dtStatus status =
m_navMesh->addTile(data,dataSize,DT_TILE_FREE_DATA,
> 0,0);
> if (dtStatusFailed(status))
> dtFree(data);
> }
>
Original issue reported on code.google.com by memono...@gmail.com on 1 May 2012 at 6:11
Original issue reported on code.google.com by
memono...@gmail.com
on 1 May 2012 at 6:11