Author: sveinung Date: Fri May 12 14:54:53 2017 New Revision: 35515 URL: http://svn.gna.org/viewcvs/freeciv?rev=35515&view=rev Log: handle_unit_get_actions(): fix target id finding.
A typo caused target id finding to abort after processing the first legal action if a target unit existed. Fix it. See hrm Bug #659158 Modified: trunk/server/unithand.c Modified: trunk/server/unithand.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/server/unithand.c?rev=35515&r1=35514&r2=35515&view=diff ============================================================================== --- trunk/server/unithand.c (original) +++ trunk/server/unithand.c Fri May 12 14:54:53 2017 @@ -1640,7 +1640,7 @@ } if (target_city_id != IDENTITY_NUMBER_ZERO - && target_unit != IDENTITY_NUMBER_ZERO) { + && target_unit_id != IDENTITY_NUMBER_ZERO) { /* No need to find out more. */ break; } _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits