id guess you is valid node is failing, put print strings or breakpoints there, and inside your GetStatCost.
check if the values are valid, is the enum correct, is the find successful etc
id guess you is valid node is failing, put print strings or breakpoints there, and inside your GetStatCost.
check if the values are valid, is the enum correct, is the find successful etc