Actions
Bug #2459
closedcommon: null deref possible
Start date:
11/08/2026
Due date:
% Done:
0%
Estimated time:
Description
unit_current_goods() returns null when no goods type's requirements hold for the unit's home city under "Leaving" selection. Shipped rulesets with a single requirement-free Goods type never hit it; sandbox (eight goods types, seven with requirements) and modded rulesets can, and the trade route branch of actres_possible() then dereferences it.
Patch: no goods, no route.
Files
Actions