I added it there to also reset the flag when a new complete path is requested. Without this, once an agent has received a partial path, the only way to reset it is if that path becomes complete. Would it be better to add ag->partial = false; in requestMoveTarget?