This commit is contained in:
hahwu 2025-04-11 18:27:07 +08:00
parent befdbd75a4
commit 61f50a8e61

View File

@ -122,7 +122,7 @@ func ReqGmCommand_(player *Player, Command string) error {
Now := GoUtil.Now()
FaceMod := player.PlayMod.getFaceMod()
FaceList := faceCfg.GetAllId()
FaceMod.List = nil
FaceMod.List = make(map[int]*face.Face)
for _, v := range FaceList {
FaceMod.List[v] = &face.Face{
AddTime: Now,
@ -130,7 +130,7 @@ func ReqGmCommand_(player *Player, Command string) error {
}
AvatarMod := player.PlayMod.getAvatarMod()
AvatarMod.List = nil
AvatarMod.List = make(map[int]*avatar.Avatar)
AvatarList := avatarCfg.GetAllId()
for _, v := range AvatarList {