Author: sveinung
Date: Mon Mar 20 11:33:52 2017
New Revision: 35130

URL: http://svn.gna.org/viewcvs/freeciv?rev=35130&view=rev
Log:
Prepare action storage for generic actions.

See hrm Feature #645783

Modified:
    trunk/common/actions.c

Modified: trunk/common/actions.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/actions.c?rev=35130&r1=35129&r2=35130&view=diff
==============================================================================
--- trunk/common/actions.c      (original)
+++ trunk/common/actions.c      Mon Mar 20 11:33:52 2017
@@ -70,12 +70,13 @@
 /* Action probability unsupported when min is this. */
 #define ACTPROB_VAL_NOT_IMPL 254
 
-static struct action *actions[ACTION_COUNT];
+static struct action *actions[MAX_NUM_ACTIONS];
 struct action_auto_perf auto_perfs[MAX_NUM_ACTION_AUTO_PERFORMERS];
 static bool actions_initialized = FALSE;
 
-static struct action_enabler_list *action_enablers_by_action[ACTION_COUNT];
-
+static struct action_enabler_list *action_enablers_by_action[MAX_NUM_ACTIONS];
+
+/* Hard requirements relates to action result. */
 static struct obligatory_req_vector obligatory_hard_reqs[ACTION_COUNT];
 
 static struct action *action_new(enum gen_action id,


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

Reply via email to