Author: sveinung Date: Fri May 12 14:57:01 2017 New Revision: 35521 URL: http://svn.gna.org/viewcvs/freeciv?rev=35521&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: branches/S3_0/server/unithand.c Modified: branches/S3_0/server/unithand.c URL: http://svn.gna.org/viewcvs/freeciv/branches/S3_0/server/unithand.c?rev=35521&r1=35520&r2=35521&view=diff ============================================================================== --- branches/S3_0/server/unithand.c (original) +++ branches/S3_0/server/unithand.c Fri May 12 14:57:01 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