Fix Mantis 2825: AddressSanitizer: global-buffer-overflow in turret_weapon_has_flags() aiturret.cpp:316

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