From c2f8b7d9e46a25545e652ab73b4f0a51a842ee7c Mon Sep 17 00:00:00 2001 From: hahwu <31872165+hahwu@users.noreply.github.com> Date: Tue, 1 Jul 2025 16:47:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=B0=83=E8=AF=95GM?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/game/Gm.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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])