Static code analysis detects use of an uninitialized vector (Pend) by CToroid::sample in computing its transform. It looks like the problem might arise from a cut & paste error, and on that assumption I have inferred from context what the correct code probably should be. If I have characterized the error correctly then the erroneous code also clobbers a different vector that it had previously initialized. I attach a patch.
Note that if I have characterized the problem incorrectly, then the patch may create breakage.
Log in to post a comment.