Author: sveinung
Date: Wed Jun  3 16:19:55 2015
New Revision: 29153

URL: http://svn.gna.org/viewcvs/freeciv?rev=29153&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:
    trunk/server/unithand.c

Modified: trunk/server/unithand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/unithand.c?rev=29153&r1=29152&r2=29153&view=diff
==============================================================================
--- trunk/server/unithand.c     (original)
+++ trunk/server/unithand.c     Wed Jun  3 16:19:55 2015
@@ -630,7 +630,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