|
@@ -166,7 +166,7 @@ namespace GFGGame
|
|
|
private void OnClickBtnSend(EventContext context)
|
|
|
{
|
|
|
GObject item = context.sender as GObject;
|
|
|
- FriendInfoData friendInfo = item.data as FriendInfoData;
|
|
|
+ FriendInfoData friendInfo = FriendDataManager.Instance.GetFriendDataById((long)item.data);
|
|
|
if (friendInfo.takeGiftState == ConstBonusStatus.CAN_GET)
|
|
|
{
|
|
|
// if (FriendDataManager.Instance.Count >= GlobalCfgArray.globalCfg.maxGetPowerCount)
|