Fix typo in AI targeting bug fix

I should take this as a hint that the retargeting logic is sloppy and
should have been done differently, but oh well.