Author: sveinung Date: Thu Nov 10 10:41:01 2016 New Revision: 34475 URL: http://svn.gna.org/viewcvs/freeciv?rev=34475&view=rev Log: An act_prob struct isn't a pointer.
The function action_auto_perf_unit_prob() returns an act_prob struct, not a pointer to an act_prob struct. Remove the const from its return type. Reported-by: Marko Lindqvist <cazfi> See bug #25268 Modified: trunk/server/actiontools.c trunk/server/actiontools.h Modified: trunk/server/actiontools.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/server/actiontools.c?rev=34475&r1=34474&r2=34475&view=diff ============================================================================== --- trunk/server/actiontools.c (original) +++ trunk/server/actiontools.c Thu Nov 10 10:41:01 2016 @@ -890,7 +890,7 @@ Returns the probability for the specified actor unit to be forced to perform an action by the specified cause. **************************************************************************/ -const struct act_prob +struct act_prob action_auto_perf_unit_prob(const enum action_auto_perf_cause cause, struct unit *actor, const struct player *other_player, Modified: trunk/server/actiontools.h URL: http://svn.gna.org/viewcvs/freeciv/trunk/server/actiontools.h?rev=34475&r1=34474&r2=34475&view=diff ============================================================================== --- trunk/server/actiontools.h (original) +++ trunk/server/actiontools.h Thu Nov 10 10:41:01 2016 @@ -71,7 +71,7 @@ const struct city *target_city, const struct unit *target_unit); -const struct act_prob +struct act_prob action_auto_perf_unit_prob(const enum action_auto_perf_cause cause, struct unit *actor, const struct player *other_player, _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits