Author: sveinung
Date: Mon Dec 29 12:45:24 2014
New Revision: 27438

URL: http://svn.gna.org/viewcvs/freeciv?rev=27438&view=rev
Log:
Fix initialization of cache of unit types capable of hostile actions.

Make sure that a unit won't be seen as capable of doing hostile actions
because the unit type's ACTION_HOSTILE wasn't properly cleared.

Reported by Marko Lindqvist <cazfi>

See bug #23116

Modified:
    trunk/common/unittype.c

Modified: trunk/common/unittype.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/unittype.c?rev=27438&r1=27437&r2=27438&view=diff
==============================================================================
--- trunk/common/unittype.c     (original)
+++ trunk/common/unittype.c     Mon Dec 29 12:45:24 2014
@@ -284,6 +284,7 @@
     BV_CLR(unit_can_act_cache[act_id], utype_index(putype));
   } action_iterate_end;
   BV_CLR(unit_can_act_cache[ACTION_ANY], utype_index(putype));
+  BV_CLR(unit_can_act_cache[ACTION_HOSTILE], utype_index(putype));
 
   /* See if the unit type can do an action controlled by generalized action
    * enablers */


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

Reply via email to