Bug #460 » 0050-Initialize-extra-before-calling-unit_assign_specific.patch
server/actiontools.c | ||
---|---|---|
case ASTK_EXTRA_NOT_THERE:
|
||
if (action_has_result(paction, ACTRES_PILLAGE)) {
|
||
/* Special treatment for "Pillage" */
|
||
struct extra_type *pextra;
|
||
struct extra_type *pextra = NULL;
|
||
enum unit_activity activity = action_get_activity(paction);
|
||
unit_assign_specific_activity_target(actor_unit, &activity, &pextra);
|