Author: cazfi Date: Thu Nov 17 10:33:15 2016 New Revision: 34546 URL: http://svn.gna.org/viewcvs/freeciv?rev=34546&view=rev Log: Fixed pillaging of extras that have no cause.
Reported by wotan <wotan> See bug #25284 Modified: trunk/common/terrain.c Modified: trunk/common/terrain.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/common/terrain.c?rev=34546&r1=34545&r2=34546&view=diff ============================================================================== --- trunk/common/terrain.c (original) +++ trunk/common/terrain.c Thu Nov 17 10:33:15 2016 @@ -568,6 +568,12 @@ } } extra_type_by_cause_iterate_rev_end; + extra_type_by_cause_iterate_rev(EC_NONE, pextra) { + if (is_extra_removed_by(pextra, ERM_PILLAGE) && BV_ISSET(extras, extra_index(pextra))) { + return pextra; + } + } extra_type_by_cause_iterate_rev_end; + return NULL; } _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits