Pathfinding for AI - fix

Fixed a compile error pointed out by Mike.
Comment if it doesn't work or if you have no idea how to use git.