diff --git a/src/server/game/Gm.go b/src/server/game/Gm.go index b13b715d..af2bcc43 100644 --- a/src/server/game/Gm.go +++ b/src/server/game/Gm.go @@ -330,8 +330,17 @@ func ReqGmCommand_(player *Player, Command string) error { player.ClearData() case "resetFriend": FriendMod := player.PlayMod.getFriendMod() - FriendMod = &friend.FriendMod{} + FriendMod.FriendList = make(map[int]struct{}) + FriendMod.ApplyList = make(map[int]int64) + FriendMod.Card = make(map[string]*card.CardInfo) + FriendMod.SendApply = make(map[int]int64) + FriendMod.NewFriendList = make(map[int]*friend.FriendInfo) + FriendMod.Npc = []int{} + FriendMod.Id = 0 + FriendMod.Log = make([]*friend.LogInfo, 0) FriendMod.InitData() + FriendListBackData(player) + FriendLogBackData(player) case "addFriend": FriendMod := player.PlayMod.getFriendMod() Uid, _ := strconv.Atoi(arg[1])