void CocoRoomTodayCandy::ccTouchEnded(CCTouch* pTouch, CCEvent* pEvent)
{
    isTouched = false;

    CCPoint point = pTouch->getLocation();

    char fname[50];
    for (int i = 0 ; i < friendList.size(); i++)
    {
        if (friendList[i]->GetKakaoId() == myInfo->GetKakaoId())
            continue;
        //if (friendList[i]->GetPotionMsgStatus() == 0)
        //    continue;

        sprintf(fname, "button/btn_blue_mini.png%d", i); // 이름은 이걸로 하는데, 사실 선택됨/선택안됨 sprite 모두 같은 위치라 그냥 이거 하나로 쓰자.
        CCSprite* temp = (CCSprite*)spriteClass->FindSpriteByName(fname);
        CCPoint p = temp->convertToNodeSpace(point);

        CCSize size = spriteClass->GetContentSizeByName(fname);
        if (isScrollViewTouched && !isScrolling &&
                (int)p.x >= 0 && (int)p.y >= 0 && (int)p.x <= size.width && (int)p.y <= size.height)
        {
            // 이미 4명 모두 선택되어 있다면 클릭을 못하게 한다.
            int cnt = 0;
            for (int j = 0 ; j < selected.size() ; j++)
            {
                if (selected[j])
                    cnt++;
            }

            if (selected[i] || (!selected[i] && cnt < 4))
            {
                sound->playClick();
                RefreshTodayCandyList(i);
                break;
            }
        }
    }
}