action_decision_maybe_auto() might get called with NULL actor unit if the client does not know the unit in question. Yet it assumes, both by an assert() and by using the pointer, that it's not NULL.
Likely this should be fixed on the caller side - there's no point in calling the function without a unit.
action_decision_maybe_auto() might get called with NULL actor unit if the client does not know the unit in question. Yet it assumes, both by an assert() and by using the pointer, that it's not NULL.
Likely this should be fixed on the caller side - there's no point in calling the function without a unit.