use an index rather than an iterator into the waypoint list so that ai_info is again a plain old data object

git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9816 387891d4-d844-0410-90c0-e4c51a9137d3