freeze.Unfreeze does not check segment number

Started by LociOiling

LociOiling Lv 1

Most foldit function produce an error if the specified segment index is out of range. The error terminates the calling recipe.

freeze.Unfreeze does not seem to check its first argument, the index of the segment to unfreeze. As a result, call like this succeed:

freeze.Unfreeze ( 99999, true, true )
freeze.Unfreeze ( -9999, true, true )

While attempting to unfreeze a non-existent segment seems harmless, this behavior is inconsistent with other foldit functions. For example, structure.DeleteCut produces an error with similar arguments. Deleting a non-existent cut point would also seem harmless.