Author: sveinung
Date: Wed Oct 21 17:58:19 2015
New Revision: 30155

URL: http://svn.gna.org/viewcvs/freeciv?rev=30155&view=rev
Log:
Tile and units targets aren't invalid

Insert missing break so tile targets and all units on tile targets don't
run the code for invalid targets. (At the moment the code for invalid
targets is an assert. It won't trigger)

See bug #23951

Modified:
    trunk/server/unithand.c

Modified: trunk/server/unithand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/unithand.c?rev=30155&r1=30154&r2=30155&view=diff
==============================================================================
--- trunk/server/unithand.c     (original)
+++ trunk/server/unithand.c     Wed Oct 21 17:58:19 2015
@@ -1051,6 +1051,7 @@
       case ATK_UNITS:
         /* The target tile aren't selected here so it haven't changed. */
         fc_assert(target_tile != NULL);
+        break;
       case ATK_COUNT:
         fc_assert_msg(action_get_target_kind(act) != ATK_COUNT,
                       "Invalid action target kind.");


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to