Author: sveinung
Date: Wed Jun  3 16:24:44 2015
New Revision: 29154

URL: http://svn.gna.org/viewcvs/freeciv?rev=29154&view=rev
Log:
Fix endless recursion in need_full_mp()

Pass the individual action in stead of ACTION_ANY in the code intended to go
from ACTION_ANY to every individual action.

See bug #23634

Modified:
    branches/S2_6/server/unithand.c

Modified: branches/S2_6/server/unithand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/server/unithand.c?rev=29154&r1=29153&r2=29154&view=diff
==============================================================================
--- branches/S2_6/server/unithand.c     (original)
+++ branches/S2_6/server/unithand.c     Wed Jun  3 16:24:44 2015
@@ -541,7 +541,7 @@
   if (action_id == ACTION_ANY) {
     /* Any action at all will do. */
     action_iterate(act) {
-      if (need_full_mp(actor, action_id)) {
+      if (need_full_mp(actor, act)) {
         /* Full movement points may enable this action. */
         return TRUE;
       }


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

Reply via email to