Author: sveinung
Date: Tue Mar 15 16:27:44 2016
New Revision: 32244

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

See bug #24521

Modified:
    trunk/common/unittype.c

Modified: trunk/common/unittype.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/unittype.c?rev=32244&r1=32243&r2=32244&view=diff
==============================================================================
--- trunk/common/unittype.c     (original)
+++ trunk/common/unittype.c     Tue Mar 15 16:27:44 2016
@@ -350,10 +350,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