BaldrDash / recastnavigation

Automatically exported from code.google.com/p/recastnavigation
zlib License
0 stars 0 forks source link

Crash bug in Crowd Tool #197

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

Steps:
I select the crowd tool and give it a target for the entities to
follow. 

Then I call handleBuild(), while the entities are still moving
and it crashes. 

I stepped into the code and found the following:

bool Sample_SoloMesh::handleBuild()

sample->m_crowd->m_navquery->m_nav
sample->m_navQuery->m_nav
sample->m_navMesh

The above ptrs are deleted in handleBuild(), however

sample->m_crowd->m_navquery->m_nav

are not given new memory and data, like the other two, because the
crowd still has agents in it.

void CrowdTool::init(MySample* sample)
...

this line prevents it from doing so:

if (nav && crowd && crowd->getAgentCount() == 0)

Original issue reported on code.google.com by hibberji...@hotmail.com on 22 Mar 2012 at 7:38

GoogleCodeExporter commented 9 years ago
Fixed in R338.

Original comment by memono...@gmail.com on 1 Apr 2012 at 10:07