ap_diplomat_battle() nonnull target_tile
Seen on S3_0; clang analyzer gives warnings about NULL dereference with tgt_tile parameter of ap_diplomat_battle().
Should probably make it nonnull, and see what further issues that reveals.
Reply To cazfi
S3_1 - main were not affected, but the "nonnull attribute" part done in attached patches anyway. S3_0 patch has more comprehensive fix.
Seen on S3_0; clang analyzer gives warnings about NULL dereference with tgt_tile parameter of ap_diplomat_battle().
Should probably make it nonnull, and see what further issues that reveals.