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
Original issue reported on code.google.com by
hibberji...@hotmail.com
on 22 Mar 2012 at 7:38