fixes attack path computation when change of target during preparation fixes #3710 This was SVN commit r17557.