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
Updated by Marko Lindqvist 16 days ago
- Related to Bug #2179: Server segfault when city cannot provide goods added
Updated by Sweet Tea Dorminy 14 days ago
Yep, this is a duplicate. Thanks for noticing!
Updated by Marko Lindqvist 14 days ago
- Status changed from New to Closed
- Assignee set to Marko Lindqvist
Actions