Skip to content

stack overflow, largestbuilding #670

Description

@ennorehling

I have just created a test by accident that dies with an endless stack of just this:

test_eressea.exe!largestbuilding(const region * r, int(*)(const building *, const building *) cmp_gt, bool imaginary) Line 706	C
test_eressea.exe!building_owner_ex(const building * bld, const faction * last_owner) Line 583	C
test_eressea.exe!building_owner(const building * bld) Line 603	C
test_eressea.exe!cmp_taxes(const building * b, const building * a) Line 847	C
test_eressea.exe!largestbuilding(const region * r, int(*)(const building *, const building *) cmp_gt, bool imaginary) Line 706	C
test_eressea.exe!building_owner_ex(const building * bld, const faction * last_owner) Line 583	C

The largest building is the one that pays the most taxes, for which it needs to have an owner, or if it has none, but region owners pay for the building, then the owner of the largest building is the region owner, and so on, we go in circles.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions