Project

General

Profile

Bug #460 » 0050-Initialize-extra-before-calling-unit_assign_specific.patch

main, S3_2 - Marko Lindqvist, 04/17/2024 12:41 AM

View differences:

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);
(1-1/2)