Add check to prevent incorrect NavCrowd::RemoveAgent usage

This commit is contained in:
Wojtek Figat
2024-02-28 18:37:59 +01:00
parent 22a3f9565f
commit 119a1e2b03

View File

@@ -145,6 +145,7 @@ void NavCrowd::ResetAgentMove(int32 id)
void NavCrowd::RemoveAgent(int32 id)
{
CHECK(id >= 0 && id < _crowd->getAgentCount());
_crowd->removeAgent(id);
}