Need help with lists within types

BlitzMax Forums/BlitzMax Programming/Need help with lists within types

and wherefor do you create tempChain then? as it isn't use anywhere it will simply be destroyed at the end of the function.

I think you have a very elemental missdesign in there as it does not do what you say it should in your description. It does not add the point 2 to point 1 chain list and then recursively build that one up ...

It adds all to point1s chain and thats it ... there is no chain for point2 ...

What you would need is a single reference that points to then next chain element and the checkchain then would go through that "self created" linked list until there is no next chain element anymore.