Author: sveinung
Date: Tue Mar 15 16:28:53 2016
New Revision: 32248

URL: http://svn.gna.org/viewcvs/freeciv?rev=32248&view=rev
Log:
Fix UnitState unit action cache size.

See bug #24521

Modified:
    branches/S2_6/common/unittype.c

Modified: branches/S2_6/common/unittype.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/common/unittype.c?rev=32248&r1=32247&r2=32248&view=diff
==============================================================================
--- branches/S2_6/common/unittype.c     (original)
+++ branches/S2_6/common/unittype.c     Tue Mar 15 16:28:53 2016
@@ -347,10 +347,10 @@
 /* Cache if any action at all may be possible when the actor unit's state
  * is...
  * bit 0 to USP_COUNT - 1: Possible when the corresponding property is TRUE
- * bit USP_COUNT to ((USP_COUNT - 1) * 2): Possible when the corresponding
+ * bit USP_COUNT to ((USP_COUNT * 2) - 1): Possible when the corresponding
  * property is FALSE
  */
-BV_DEFINE(bv_ustate_act_cache, ((USP_COUNT - 1) * 2));
+BV_DEFINE(bv_ustate_act_cache, USP_COUNT * 2);
 
 /* Caches for each unit type */
 static bv_ustate_act_cache ustate_act_cache[U_LAST][ACTION_AND_FAKES];


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

Reply via email to