Update CPState.cpp

bug fixed in member function "check_saturated_quality"