Practically it's a magic number present in the original Pascal code as well. I truly have no idea where did it came from, it's only used here, to check if the loaded sprite's ID is correct.